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 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.
  • Field Details

  • Constructor Details

    • DataLayout

      public DataLayout(String label)
      Data layout constructor.
      Parameters:
      label - TODO javadoc me please
  • Method Details

    • 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 and DataLayout.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()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement
    • toXML

      public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element