Class DataLayout
- java.lang.Object
-
- org.jivesoftware.smackx.xdatalayout.packet.DataLayout
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class DataLayout extends Object implements ExtensionElement
DataLayout Extension according to XEP-0141: Data Forms Layout. Defines a backwards-compatible extension to the XMPP Data Forms protocol that enables an application to specify form layouts, including the layout of form fields, sections within pages, and subsections within sections.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataLayout.DataFormLayoutElement
static class
DataLayout.Fieldref
static class
DataLayout.Reportedref
static class
DataLayout.Section
static class
DataLayout.Text
-
Constructor Summary
Constructors Constructor Description DataLayout(String label)
Data layout constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.String
getLabel()
Gets the value of the label property.String
getNamespace()
Returns the root element XML namespace.List<DataLayout.DataFormLayoutElement>
getPageLayout()
Gets the value of the pageLayout property.XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataLayout
public DataLayout(String label)
Data layout constructor.- Parameters:
label
- TODO javadoc me please
-
-
Method Detail
-
getPageLayout
public List<DataLayout.DataFormLayoutElement> getPageLayout()
Gets the value of the pageLayout property.Objects of the following type(s) are allowed in the list:
String
,DataLayout.Section
,DataLayout.Fieldref
andDataLayout.Reportedref
- Returns:
- list of DataFormLayoutElements.
-
getLabel
public String getLabel()
Gets the value of the label property.- Returns:
- possible object is
String
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-