|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.jaxmpp.core.client.xml.ElementWrapper
tigase.jaxmpp.core.client.xmpp.forms.AbstractField<String>
tigase.jaxmpp.core.client.xmpp.forms.ListSingleField
public class ListSingleField
Implementation of list-single field type.
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.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class tigase.jaxmpp.core.client.xmpp.forms.AbstractField |
|---|
getDesc, getLabel, getType, getVar, isRequired, setDesc, setLabel, setRequired, setVar |
| Methods inherited from class tigase.jaxmpp.core.client.xml.ElementWrapper |
|---|
addChild, equals, getAsString, getAttribute, getAttributes, getChildAfter, getChildElementValue, getChildElementValue, getChildren, getChildren, getChildrenNS, getChildrenNS, getFirstChild, getFirstChild, getName, getNextSibling, getParent, getValue, getXMLNS, hashCode, removeAttribute, removeChild, setAttribute, setAttributes, setChildElementValue, setChildElementValue, setParent, setValue, setXMLNS |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addOption(String label,
String value)
throws XMLException
label - label of optionvalue - value of option
XMLException
public void clearOptions()
throws XMLException
XMLException
public String getFieldValue()
throws XMLException
XMLException
public void setFieldValue(String value)
throws XMLException
value - value of field
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||