Package tigase.form
Class Field
- java.lang.Object
-
- tigase.form.Field
-
- All Implemented Interfaces:
Comparable<Field>
public class Field extends Object implements Comparable<Field>
Created: 2007-05-27 10:56:06
- Author:
- bmalkow
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classField.FieldType
-
Constructor Summary
Constructors Constructor Description Field(tigase.xml.Element fieldElement)
-
Method Summary
-
-
-
Method Detail
-
fieldListMulti
public static Field fieldListMulti(String var, String[] values, String label, String[] optionsLabel, String[] optionsValue)
-
fieldListSingle
public static Field fieldListSingle(String var, String value, String label, String[] optionsLabel, String[] optionsValue)
-
main
public static void main(String[] args)
-
compareTo
public int compareTo(Field o)
- Specified by:
compareToin interfaceComparable<Field>
-
cloneShalow
public Field cloneShalow()
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getElement
public tigase.xml.Element getElement()
-
getElement
public tigase.xml.Element getElement(boolean type, boolean label)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getOptionLabels
public String[] getOptionLabels()
-
setOptionLabels
public void setOptionLabels(String[] optionLabels)
-
getOptionValues
public String[] getOptionValues()
-
setOptionValues
public void setOptionValues(String[] optionValues)
-
getType
public Field.FieldType getType()
-
setType
public void setType(Field.FieldType type)
-
getValue
public String getValue()
-
getValues
public String[] getValues()
-
setValues
public void setValues(String[] values)
-
getVar
public String getVar()
-
setVar
public void setVar(String var)
-
isRequired
public boolean isRequired()
-
setRequired
public void setRequired(boolean required)
-
-