tigase.form
Class Field

java.lang.Object
  extended by tigase.form.Field

public class Field
extends Object

Created: 2007-05-27 10:56:06

Version:
$Rev:43 $
Author:
bmalkow

Nested Class Summary
static class Field.FieldType
          Enum description
 
Constructor Summary
Field(tigase.xml.Element fieldElement)
          Constructs ...
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(tigase.xml.Element fieldElement)
Constructs ...

Parameters:
fieldElement -
Method Detail

fieldBoolean

public static Field fieldBoolean(String var,
                                 Boolean value,
                                 String label)
Method description

Parameters:
var -
value -
label -
Returns:

fieldFixed

public static Field fieldFixed(String value)
Method description

Parameters:
value -
Returns:

fieldHidden

public static Field fieldHidden(String var,
                                String value)
Method description

Parameters:
var -
value -
Returns:

fieldJidSingle

public static Field fieldJidSingle(String var,
                                   String value,
                                   String label)
Method description

Parameters:
var -
value -
label -
Returns:

fieldListMulti

public static Field fieldListMulti(String var,
                                   String[] values,
                                   String label,
                                   String[] optionsLabel,
                                   String[] optionsValue)
Method description

Parameters:
var -
values -
label -
optionsLabel -
optionsValue -
Returns:

fieldListSingle

public static Field fieldListSingle(String var,
                                    String value,
                                    String label,
                                    String[] optionsLabel,
                                    String[] optionsValue)
Method description

Parameters:
var -
value -
label -
optionsLabel -
optionsValue -
Returns:

fieldTextMulti

public static Field fieldTextMulti(String var,
                                   String value,
                                   String label)
Method description

Parameters:
var -
value -
label -
Returns:

fieldTextMulti

public static Field fieldTextMulti(String var,
                                   String[] values,
                                   String label)
Method description

Parameters:
var -
values -
label -
Returns:

fieldTextPrivate

public static Field fieldTextPrivate(String var,
                                     String value,
                                     String label)
Method description

Parameters:
var -
value -
label -
Returns:

fieldTextSingle

public static Field fieldTextSingle(String var,
                                    String value,
                                    String label)
Method description

Parameters:
var -
value -
label -
Returns:

getAsBoolean

public static Boolean getAsBoolean(Field f)
Method description

Parameters:
f -
Returns:

main

public static void main(String[] args)
Method description

Parameters:
args -

getDescription

public String getDescription()
Returns:
Returns the description.

getElement

public tigase.xml.Element getElement()
Method description

Returns:

getLabel

public String getLabel()
Returns:
Returns the label.

getOptionLabels

public String[] getOptionLabels()
Returns:
Returns the optionLabels.

getOptionValues

public String[] getOptionValues()
Returns:
Returns the optionValues.

getType

public Field.FieldType getType()
Returns:
Returns the type.

getValue

public String getValue()
Method description

Returns:

getValues

public String[] getValues()
Returns:
Returns the values.

getVar

public String getVar()
Returns:
Returns the var.

isRequired

public boolean isRequired()
Returns:
Returns the required.

setDescription

public void setDescription(String description)
Parameters:
description - The description to set.

setLabel

public void setLabel(String label)
Parameters:
label - The label to set.

setOptionLabels

public void setOptionLabels(String[] optionLabels)
Parameters:
optionLabels - The optionLabels to set.

setOptionValues

public void setOptionValues(String[] optionValues)
Parameters:
optionValues - The optionValues to set.

setRequired

public void setRequired(boolean required)
Parameters:
required - The required to set.

setType

public void setType(Field.FieldType type)
Parameters:
type - The type to set.

setValues

public void setValues(String[] values)
Parameters:
values - The values to set.

setVar

public void setVar(String var)
Parameters:
var - The var to set.

toString

public String toString()
Method description

Overrides:
toString in class Object
Returns:


Copyright © 2013 Tigase. All Rights Reserved.