|
||||||||||
| 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.JabberDataElement
public class JabberDataElement
Implementation of Data Form.
| Constructor Summary | |
|---|---|
JabberDataElement(Element x)
Creates instance of JabberDataElement and parse fields. |
|
JabberDataElement(XDataType type)
Creates empty form instance. |
|
| Method Summary | ||
|---|---|---|
BooleanField |
addBooleanField(String var,
Boolean value)
Adds boolean field to form. |
|
protected void |
addField(AbstractField<?> f)
|
|
FixedField |
addFixedField(String value)
Adds fixed field to form. |
|
void |
addFORM_TYPE(String value)
Adds field "FORM_TYPE" hidded field to form. |
|
HiddenField |
addHiddenField(String var,
String value)
Adds hidden field to form. |
|
JidMultiField |
addJidMultiField(String var,
JID... value)
Adds jid-multi field to form. |
|
JidSingleField |
addJidSingleField(String var,
JID value)
Adds jid-single field to form. |
|
ListMultiField |
addListMultiField(String var,
String... value)
Adds list-multi field to form. |
|
ListSingleField |
addListSingleField(String var,
String value)
Adds list-single field to form. |
|
TextMultiField |
addTextMultiField(String var,
String... value)
Adds text-multi field to form. |
|
TextPrivateField |
addTextPrivateField(String var,
String value)
Adds text-private field to form. |
|
TextSingleField |
addTextSingleField(String var,
String value)
Adds text-single field to form. |
|
Element |
createSubmitableElement(XDataType type)
Creates XML Element contains only values of fields. |
|
|
getField(String var)
Returns field with given name. |
|
ArrayList<AbstractField<?>> |
getFields()
Returns all fields of form. |
|
String |
getInstructions()
Returns natural language instruction. |
|
String |
getTitle()
Returns title. |
|
XDataType |
getType()
Return data type. |
|
void |
setInstructions(String instructions)
Sets natural-language instruction. |
|
void |
setTitle(String title)
Sets form title. |
|
| 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 |
| Constructor Detail |
|---|
public JabberDataElement(Element x)
throws JaxmppException
x - <x xmlns='jabber:x:data'/> element.
JaxmppException
public JabberDataElement(XDataType type)
throws XMLException
type - type of data.
XMLException| Method Detail |
|---|
public final BooleanField addBooleanField(String var,
Boolean value)
throws XMLException
var - name of fieldvalue - value of field
XMLException
protected void addField(AbstractField<?> f)
throws XMLException
XMLException
public final FixedField addFixedField(String value)
throws XMLException
value - value of field
XMLException
public void addFORM_TYPE(String value)
throws XMLException
value - value of field
XMLException
public final HiddenField addHiddenField(String var,
String value)
throws XMLException
var - name of fieldvalue - value of field
XMLException
public final JidMultiField addJidMultiField(String var,
JID... value)
throws XMLException
var - name of fieldvalue - values of field
XMLException
public final JidSingleField addJidSingleField(String var,
JID value)
throws XMLException
var - name of fieldvalue - value of field
XMLException
public final ListMultiField addListMultiField(String var,
String... value)
throws XMLException
var - name of fieldvalue - values of field
XMLException
public final ListSingleField addListSingleField(String var,
String value)
throws XMLException
var - name of field.value - value of field
XMLException
public final TextMultiField addTextMultiField(String var,
String... value)
throws XMLException
var - name of fieldvalue - values of field
XMLException
public final TextPrivateField addTextPrivateField(String var,
String value)
throws XMLException
var - name of field.value - value of field
TextPrivateField
XMLException
public final TextSingleField addTextSingleField(String var,
String value)
throws XMLException
var - name of field.value - value od field.
XMLException
public Element createSubmitableElement(XDataType type)
throws XMLException
type - data type
XMLExceptionpublic <X extends AbstractField<?>> X getField(String var)
var - name of field
null is field with given name doesn't
exists in form.public ArrayList<AbstractField<?>> getFields()
public String getInstructions()
throws XMLException
XMLException
public String getTitle()
throws XMLException
XMLException
public XDataType getType()
throws XMLException
XMLException
public void setInstructions(String instructions)
throws XMLException
instructions - instruction.
XMLException
public void setTitle(String title)
throws XMLException
title - title
XMLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||