public final class Page
extends java.lang.Object
The implementation of the <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 java.lang.String |
NAMESPACE
|
| Constructor and Description |
|---|
Page(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences)
Creates a page.
|
Page(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences,
java.util.Collection<java.lang.String> text)
Creates a page.
|
Page(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences,
java.util.Collection<java.lang.String> text,
FieldReference reportedReference)
Creates a page.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<FieldReference> |
getFieldReferences()
Gets the field references.
|
java.lang.String |
getLabel()
Gets the label for this page.
|
FieldReference |
getReportedReference()
Gets the reported field reference.
|
java.util.List<Section> |
getSections()
Gets the sections for this page.
|
java.util.List<java.lang.String> |
getText()
Gets additional information for the page.
|
public static final java.lang.String NAMESPACE
public Page(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences)
Creates a page.
label - The label.fieldReferences - The field references.public Page(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences,
java.util.Collection<java.lang.String> text)
Creates a page.
label - The label.fieldReferences - The field references.text - The text.public Page(java.lang.String label,
java.util.Collection<FieldReference> fieldReferences,
java.util.Collection<java.lang.String> text,
FieldReference reportedReference)
Creates a page.
label - The label.fieldReferences - The field references.text - The text.reportedReference - The reference to a reported field.public final java.util.List<java.lang.String> getText()
Gets additional information for the page.
public final java.util.List<FieldReference> getFieldReferences()
Gets the field references. These are the fields, which appear on this page.
public final java.util.List<Section> getSections()
Gets the sections for this page.
public final FieldReference getReportedReference()
Gets the reported field reference.
public final java.lang.String getLabel()
Gets the label for this page.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.