Constructor and Description |
---|
FormItemList(org.w3c.dom.Element textElement)
Constructs a
FormItemList fromt the specified XML element. |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getCommandParameters()
Return the map of Command Parameters in case command is true, else returns an empty map.
|
java.lang.String |
getId()
Returns the internal ID of this field.
|
java.lang.String |
getLabel()
Returns the label of the field.
|
java.lang.String |
getValue()
Returns the current value.
|
boolean |
isLabel()
Returns
true if this form item is a label. |
boolean |
isList()
Returns
true if this form item is a list. |
boolean |
isNumber()
Returns
true if this form item is a number field. |
boolean |
isOverwrite()
Returns
true if the a new value can be defined. |
boolean |
isRequired()
Returns
true if an input is required. |
boolean |
isText()
Returns
true if this form item is a text input field. |
boolean |
isUppercase()
Returns
true if the value is converted to upper case. |
boolean |
isValid()
Tests if the current value a valid input for this field.
|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the predefined values.
|
int |
listSize()
Returns the number of values in this list.
|
void |
setValue(java.lang.String value)
Sets a new value for this field.
|
public FormItemList(org.w3c.dom.Element textElement)
FormItemList
fromt the specified XML element.textElement
- Elementpublic java.lang.String getLabel()
IFormItem
public java.lang.String getValue()
IFormItem
public boolean isLabel()
IFormItem
true
if this form item is a label.public boolean isList()
IFormItem
true
if this form item is a list.
A cast to FormItemList
can be done if this method returns true
.public boolean isUppercase()
true
if the value is converted to upper case.public boolean isNumber()
IFormItem
true
if this form item is a number field.
A cast to FormItemNumber
can be done if this method returns true
.public boolean isRequired()
IFormItem
true
if an input is required. In this case the value cannot be an empty String
.isRequired
in interface IFormItem
public boolean isOverwrite()
true
if the a new value can be defined.
If the method returns false
only one of the predefined values is allowed.public java.util.Iterator<java.lang.String> iterator()
java.lang.String
.iterator
in interface java.lang.Iterable<java.lang.String>
public boolean isText()
IFormItem
true
if this form item is a text input field.
A cast to FormItemText
can be done if this method returns true
.public int listSize()
public void setValue(java.lang.String value)
IFormItem
public java.lang.String getId()
IFormItem
public boolean isValid()
IFormItem
public java.util.Map<java.lang.String,java.lang.String> getCommandParameters()