Class DataLayout
- java.lang.Object
-
- org.jivesoftware.smackx.xdatalayout.packet.DataLayout
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.ExtensionElement
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.XmlElement
,org.jivesoftware.smack.packet.XmlLangElement
public class DataLayout extends java.lang.Object implements org.jivesoftware.smack.packet.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(java.lang.String label)
Data layout constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
java.lang.String
getLabel()
Gets the value of the label property.java.lang.String
getNamespace()
java.util.List<DataLayout.DataFormLayoutElement>
getPageLayout()
Gets the value of the pageLayout property.org.jivesoftware.smack.util.XmlStringBuilder
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPageLayout
public java.util.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 java.lang.String getLabel()
Gets the value of the label property.- Returns:
- possible object is
String
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXML
in interfaceorg.jivesoftware.smack.packet.Element
-
-