public final class Page extends Object
<page/> element in the http://jabber.org/protocol/xdata-layout namespace.
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.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/xdata-layout
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
List<FieldReference> |
getFieldReferences()
Gets the field references.
|
String |
getLabel()
Gets the label for this page.
|
FieldReference |
getReportedReference()
Gets the reported field reference.
|
List<Section> |
getSections()
Gets the sections for this page.
|
List<String> |
getText()
Gets additional information for the page.
|
public static final String NAMESPACE
public Page(String label, Collection<FieldReference> fieldReferences)
label - The label.fieldReferences - The field references.public Page(String label, Collection<FieldReference> fieldReferences, Collection<String> text)
label - The label.fieldReferences - The field references.text - The text.public Page(String label, Collection<FieldReference> fieldReferences, Collection<String> text, FieldReference reportedReference)
label - The label.fieldReferences - The field references.text - The text.reportedReference - The reference to a reported field.public final List<String> getText()
public final List<FieldReference> getFieldReferences()
public final List<Section> getSections()
public final FieldReference getReportedReference()
public final String getLabel()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.