public class Field extends Object
Created: 2007-05-27 10:56:06
| Modifier and Type | Class and Description |
|---|---|
static class |
Field.FieldType
Enum description
|
| Constructor and Description |
|---|
Field(tigase.xml.Element fieldElement)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
static Field |
fieldBoolean(String var,
Boolean value,
String label)
Method description
|
static Field |
fieldFixed(String value)
Method description
|
static Field |
fieldHidden(String var,
String value)
Method description
|
static Field |
fieldJidSingle(String var,
String value,
String label)
Method description
|
static Field |
fieldListMulti(String var,
String[] values,
String label,
String[] optionsLabel,
String[] optionsValue)
Method description
|
static Field |
fieldListSingle(String var,
String value,
String label,
String[] optionsLabel,
String[] optionsValue)
Method description
|
static Field |
fieldTextMulti(String var,
String[] values,
String label)
Method description
|
static Field |
fieldTextMulti(String var,
String value,
String label)
Method description
|
static Field |
fieldTextPrivate(String var,
String value,
String label)
Method description
|
static Field |
fieldTextSingle(String var,
String value,
String label)
Method description
|
static Boolean |
getAsBoolean(Field f)
Method description
|
String |
getDescription() |
tigase.xml.Element |
getElement()
Method description
|
String |
getLabel() |
String[] |
getOptionLabels() |
String[] |
getOptionValues() |
Field.FieldType |
getType() |
String |
getValue()
Method description
|
String[] |
getValues() |
String |
getVar() |
boolean |
isRequired() |
static void |
main(String[] args)
Method description
|
void |
setDescription(String description) |
void |
setLabel(String label) |
void |
setOptionLabels(String[] optionLabels) |
void |
setOptionValues(String[] optionValues) |
void |
setRequired(boolean required) |
void |
setType(Field.FieldType type) |
void |
setValues(String[] values) |
void |
setVar(String var) |
String |
toString()
Method description
|
public Field(tigase.xml.Element fieldElement)
fieldElement - public static Field fieldBoolean(String var, Boolean value, String label)
var - value - label - public static Field fieldFixed(String value)
value - public static Field fieldHidden(String var, String value)
var - value - public static Field fieldJidSingle(String var, String value, String label)
var - value - label - public static Field fieldListMulti(String var, String[] values, String label, String[] optionsLabel, String[] optionsValue)
var - values - label - optionsLabel - optionsValue - public static Field fieldListSingle(String var, String value, String label, String[] optionsLabel, String[] optionsValue)
var - value - label - optionsLabel - optionsValue - public static Field fieldTextMulti(String var, String value, String label)
var - value - label - public static Field fieldTextMulti(String var, String[] values, String label)
var - values - label - public static Field fieldTextPrivate(String var, String value, String label)
var - value - label - public static Field fieldTextSingle(String var, String value, String label)
var - value - label - public static void main(String[] args)
args - public String getDescription()
public tigase.xml.Element getElement()
public String getLabel()
public String[] getOptionLabels()
public String[] getOptionValues()
public Field.FieldType getType()
public String getValue()
public String[] getValues()
public String getVar()
public boolean isRequired()
public void setDescription(String description)
description - The description to set.public void setLabel(String label)
label - The label to set.public void setOptionLabels(String[] optionLabels)
optionLabels - The optionLabels to set.public void setOptionValues(String[] optionValues)
optionValues - The optionValues to set.public void setRequired(boolean required)
required - The required to set.public void setType(Field.FieldType type)
type - The type to set.public void setValues(String[] values)
values - The values to set.public void setVar(String var)
var - The var to set.Copyright © 2014 Tigase. All rights reserved.