1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.workflow.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.List;
28  
29  /**
30   * <a href="WorkflowTaskFormElement.java.html"><b><i>View Source</i></b></a>
31   *
32   * @author Charles May
33   *
34   */
35  public class WorkflowTaskFormElement implements Serializable {
36  
37      public static final String TYPE_CHECKBOX = "checkbox";
38  
39      public static final String TYPE_DATE = "date";
40  
41      public static final String TYPE_EMAIL = "email";
42  
43      public static final String TYPE_NUMBER = "number";
44  
45      public static final String TYPE_PHONE = "phone";
46  
47      public static final String TYPE_PASSWORD = "password";
48  
49      public static final String TYPE_RADIO = "radio";
50  
51      public static final String TYPE_SELECT = "select";
52  
53      public static final String TYPE_TEXT = "text";
54  
55      public static final String TYPE_TEXTAREA = "textarea";
56  
57      public WorkflowTaskFormElement() {
58      }
59  
60      public String getType() {
61          return _type;
62      }
63  
64      public void setType(String type) {
65          _type = type;
66      }
67  
68      public String getDisplayName() {
69          return _displayName;
70      }
71  
72      public void setDisplayName(String displayName) {
73          _displayName = displayName;
74      }
75  
76      public String getVariableName() {
77          return _variableName;
78      }
79  
80      public void setVariableName(String variableName) {
81          _variableName = variableName;
82      }
83  
84      public String getValue() {
85          return _value;
86      }
87  
88      public void setValue(String value) {
89          _value = value;
90      }
91  
92      public List getValueList() {
93          return _valueList;
94      }
95  
96      public void setValueList(List valueList) {
97          _valueList = valueList;
98      }
99  
100     public boolean isReadable() {
101         return _readable;
102     }
103 
104     public void setReadable(boolean readable) {
105         _readable = readable;
106     }
107 
108     public boolean isWritable() {
109         return _writable;
110     }
111 
112     public void setWritable(boolean writable) {
113         _writable = writable;
114     }
115 
116     public boolean isReadOnly() {
117         return !_writable;
118     }
119 
120     public boolean isRequired() {
121         return _required;
122     }
123 
124     public void setRequired(boolean required) {
125         _required = required;
126     }
127 
128     private String _type;
129     private String _displayName;
130     private String _variableName;
131     private String _value;
132     private List _valueList;
133     private boolean _readable = true;
134     private boolean _writable = true;
135     private boolean _required = true;
136 
137 }