Class Page
- java.lang.Object
-
- rocks.xmpp.extensions.data.layout.model.Page
-
public final class Page extends Object
The implementation of the<page/>element in thehttp://jabber.org/protocol/xdata-layoutnamespace.A page is the top-level layout container for data forms. It may contain sections, which partition the page into smaller parts.
Each page in a data form contains references to a field in the data form, in order to know which fields should be displayed on this page.
This class is immutable.
-
-
Constructor Summary
Constructors Constructor Description Page(String label, Collection<FieldReference> fieldReferences)Creates a page.Page(String label, Collection<FieldReference> fieldReferences, Collection<String> text)Creates a page.Page(String label, Collection<FieldReference> fieldReferences, Collection<String> text, FieldReference reportedReference)Creates a page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<FieldReference>getFieldReferences()Gets the field references.StringgetLabel()Gets the label for this page.FieldReferencegetReportedReference()Gets the reported field reference.List<Section>getSections()Gets the sections for this page.List<String>getText()Gets additional information for the page.inthashCode()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
http://jabber.org/protocol/xdata-layout- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Page
public Page(String label, Collection<FieldReference> fieldReferences)
Creates a page.- Parameters:
label- The label.fieldReferences- The field references.
-
Page
public Page(String label, Collection<FieldReference> fieldReferences, Collection<String> text)
Creates a page.- Parameters:
label- The label.fieldReferences- The field references.text- The text.
-
Page
public Page(String label, Collection<FieldReference> fieldReferences, Collection<String> text, FieldReference reportedReference)
Creates a page.- Parameters:
label- The label.fieldReferences- The field references.text- The text.reportedReference- The reference to a reported field.
-
-
Method Detail
-
getText
public final List<String> getText()
Gets additional information for the page.- Returns:
- Additional information.
-
getFieldReferences
public final List<FieldReference> getFieldReferences()
Gets the field references. These are the fields, which appear on this page.- Returns:
- The field references.
-
getSections
public final List<Section> getSections()
Gets the sections for this page.- Returns:
- The sections.
-
getReportedReference
public final FieldReference getReportedReference()
Gets the reported field reference.- Returns:
- The reported field reference.
-
getLabel
public final String getLabel()
Gets the label for this page.- Returns:
- The label.
-
-