public class Group extends AbstractElement<GroupDescriptor>
A group is described by a group descriptor
.
A group is a holder for Areas.
The group forms the basis of a Tree structure and may contain nested groups and teasers.
An example structure:Modifier and Type | Field and Description |
---|---|
static String |
XMLNS_GROUP_INSTANCE |
Constructor and Description |
---|
Group(Group pSrc)
Deep-copies the group and all areas.
|
Group(GroupDescriptor pDescriptor) |
Modifier and Type | Method and Description |
---|---|
Area |
getArea(String pAreaName) |
List<Area> |
getAreas() |
String |
getLabel()
Get this Group's label.
|
Map<String,Object> |
getOptions()
Returns a mutable
Map of options. |
boolean |
isLabelDerived()
Returns true if
mLabel is not set on this Group. |
boolean |
isValid() |
void |
setLabel(String pLabel) |
String |
toString() |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getDescriptor, getParent, readResolve, removePropertyChangeListener, removePropertyChangeListener
public static final String XMLNS_GROUP_INSTANCE
public Group(GroupDescriptor pDescriptor)
public Group(Group pSrc)
pSrc
- the group to copypublic String getLabel()
isLabelDerived()
public void setLabel(String pLabel)
public boolean isLabelDerived()
mLabel
is not set on this Group. The label for this Group is then derived from its areas
.mLabel
is not set on this Group.getLabel()
public boolean isValid()
public Map<String,Object> getOptions()
Map
of options.Map
of options. Will never return null
.© 1998- 2021 Escenic AS