public class ListMultiField extends AbstractField<String[]>
The field enables an entity to gather or provide one or more options from among many. A form-submitting entity chooses one or more items from among the options presented by the form-processing entity and MUST NOT insert new options. The form-submitting entity MUST NOT modify the order of items as received from the form-processing entity, since the order of items MAY be significant.
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldValue(String... value)
Adds value to field.
|
void |
addOption(String label,
String value)
Adds option to field.
|
void |
clearOptions()
Removes all options.
|
void |
clearValues()
Removes all values.
|
String[] |
getFieldValue()
Returns value of field.
|
void |
setFieldValue(String[] value)
Sets value of field.
|
getDesc, getLabel, getType, getVar, isRequired, setDesc, setLabel, setRequired, setVaraddChild, equals, findChild, getAsString, getAttribute, getAttributes, getChildAfter, getChildElementValue, getChildElementValue, getChildren, getChildren, getChildrenNS, getChildrenNS, getFirstChild, getFirstChild, getName, getNextSibling, getParent, getValue, getWrappedElement, getXMLNS, hashCode, removeAttribute, removeChild, setAttribute, setAttributes, setChildElementValue, setChildElementValue, setParent, setValue, setXMLNSpublic void addFieldValue(String... value) throws XMLException
value - value to addXMLExceptionpublic void addOption(String label, String value) throws XMLException
label - label of optionvalue - value of optionXMLExceptionpublic void clearOptions()
throws XMLException
XMLExceptionpublic void clearValues()
throws XMLException
XMLExceptionpublic String[] getFieldValue() throws XMLException
XMLExceptionpublic void setFieldValue(String[] value) throws XMLException
value - value of fieldXMLExceptionCopyright © 2006–2016 Tigase. All rights reserved.