public class FormItemList extends AbstractFormItem implements java.lang.Iterable<java.lang.String>
| Constructor and Description |
|---|
FormItemList(org.w3c.dom.Element textElement)
Constructs a
FormItemList from 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.
|
protected int |
getSelectionIndex() |
java.lang.String |
getValue()
Returns the current value.
|
boolean |
isList()
Returns
true if this form item is a list. |
boolean |
isOverwrite()
Returns
true if the a new value can be defined. |
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the predefined values.
|
int |
listSize()
Returns the number of values in this list.
|
protected void |
setSelectionIndex(int selectionIndex) |
void |
setValue(java.lang.String value)
Sets a new value for this field.
|
getId, getLabel, isFixed, isLabel, isNewLine, isNumber, isRequired, isText, isUppercase, isValidpublic FormItemList(org.w3c.dom.Element textElement)
FormItemList from the specified XML element.textElement - XML elementprotected int getSelectionIndex()
protected void setSelectionIndex(int selectionIndex)
public java.lang.String getValue()
IFormItempublic boolean isList()
IFormItemtrue if this form item is a list.
A cast to FormItemList can be done if this method returns true.isList in interface IFormItemisList in class AbstractFormItempublic 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 int listSize()
public void setValue(java.lang.String value)
IFormItempublic java.util.Map<java.lang.String,java.lang.String> getCommandParameters()