public class NullPresentationElement extends Object implements PresentationElement
Constructor and Description |
---|
NullPresentationElement()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map<String,PresentationElement> |
getAreas()
Deprecated.
Returns the areas in a
PresentationElement that represents
a group. |
PresentationArticle |
getContent()
Deprecated.
Returns the content item referenced by a
PresentationElement that represents
a summary. |
Map<String,PresentationProperty<?>> |
getFields()
Deprecated.
Returns all the fields in a
PresentationElement that represents a summary. |
List<PresentationElement> |
getItems()
Deprecated.
Returns the summaries in a
PresentationElement that represents
an area. |
List<String> |
getKeys()
Deprecated.
Returns the names of the areas in a
PresentationElement that represents
a group. |
String |
getLabel()
Deprecated.
Returns the label of the
PresentationElement if the
PresentationElement representas a group or area. |
Map<String,Object> |
getOptions()
Deprecated.
Returns a
Map of options for this PresentationElement . |
PresentationElement |
getParent()
Deprecated.
Returns the parent of this element.
|
String |
getType()
Deprecated.
Returns the type of the
PresentationElement . |
public PresentationArticle getContent()
PresentationElement
PresentationElement
that represents
a summary.getContent
in interface PresentationElement
public PresentationElement getParent()
PresentationElement
Teaser
, ListTeaser
: The parent is always an Area
Area
: The parent is always a Group
Group
: The parent is always either an Area
or null
when the group is a
root group.PresentationElement
may not follow this rule if it is not a part of the section
page.getParent
in interface PresentationElement
PresentationElement
. If this element has no parent, then null
is
returned.public Map<String,PresentationElement> getAreas()
PresentationElement
PresentationElement
that represents
a group. If this property has zero length then the PresentationElement
represents an area or a summary, not a group.getAreas
in interface PresentationElement
public Map<String,Object> getOptions()
PresentationElement
Map
of options for this PresentationElement
.getOptions
in interface PresentationElement
map
containing all options for this PresentationElement
. Will never be null
.public String getType()
PresentationElement
PresentationElement
. For a PresentationElement
representing a group or area, this will be the name of the group or area definition
on which it is based. Groups and areas are defined in the layout-group
resource
file. For a PresentationElement
representing a summary, no value is returned.getType
in interface PresentationElement
public String getLabel()
PresentationElement
PresentationElement
if the
PresentationElement
representas a group or area. If the element
represents a different object, null
will be returned.
This comes from the <ui:label/>
inside the XML
element of the layout-group
resource file. If no such XML
element has been defined, the name of the element capitalised
will be retuned.getLabel
in interface PresentationElement
public Map<String,PresentationProperty<?>> getFields()
PresentationElement
PresentationElement
that represents a summary.
If this property has zero length then the PresentationElement
represents a group or an area, not a summary.
The actual type of the Java Object
s representing the fields depends upon
field type as follows:
Field type | Java Object |
---|---|
BASIC | String |
NUMBER | a subclass of Number |
COMPLEX | Map |
BOOLEAN | Boolean |
ENUMERATION | a String or List of Strings |
URI | URI |
LINK | Link |
DATE | Date |
SCHEDULE | PresentationSchedule |
getFields
in interface PresentationElement
public List<PresentationElement> getItems()
PresentationElement
PresentationElement
that represents
an area. If this property has zero length then the PresentationElement
represents a group or a summary, not an area.getItems
in interface PresentationElement
public List<String> getKeys()
PresentationElement
PresentationElement
that represents
a group. The names are returned in the order they are defined in the
layout-group
resource. If this property has zero length then the
PresentationElement
represents an area or a summary, not a group.getKeys
in interface PresentationElement
© 1998- 2018 Stibo DX