Constructor and Description |
---|
FormItemList(Element textElement)
Constructs a
FormItemList from the specified XML element. |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getCommandParameters()
Return the map of Command Parameters in case command is true, else returns an empty map.
|
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. |
Iterator<String> |
iterator()
Returns an iterator over the predefined values.
|
int |
listSize()
Returns the number of values in this list.
|
void |
setValue(String value)
Sets a new value for this field.
|
getId, getLabel, isFixed, isLabel, isNewLine, isNumber, isRequired, isText, isUppercase, isValid
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FormItemList(Element textElement)
FormItemList
from the specified XML element.textElement
- XML elementpublic String getValue()
IFormItem
public boolean isList()
IFormItem
true
if this form item is a list.
A cast to FormItemList
can be done if this method returns true
.isList
in interface IFormItem
isList
in class AbstractFormItem
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 Iterator<String> iterator()
java.lang.String
.public int listSize()
public void setValue(String value)
IFormItem
public Map<String,String> getCommandParameters()
Copyright © 2019. All rights reserved.