public class ListSingleField extends AbstractField<String>
The field enables an entity to gather or provide one option from among many. A form-submitting entity chooses one item from among the options presented by the form-processing entity and MUST NOT insert new options.
VAR_COMPARATOR
Modifier and Type | Method and Description |
---|---|
void |
addOption(String label,
String value)
Adds option to field.
|
void |
clearOptions()
Removes all options.
|
String |
getFieldValue()
Returns value of field.
|
void |
setFieldValue(String value)
Sets value of field.
|
getDesc, getLabel, getType, getVar, isRequired, setDesc, setLabel, setRequired, setVar
addChild, 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, setXMLNS, toString
public void addOption(String label, String value) throws XMLException
label
- label of optionvalue
- value of optionXMLException
public void clearOptions() throws XMLException
XMLException
public String getFieldValue() throws XMLException
XMLException
public void setFieldValue(String value) throws XMLException
value
- value of fieldXMLException
Copyright © 2006–2023 Tigase. All rights reserved.