public class SimpleViewItemGroup extends AbstractViewItemGroup implements ModifiableLabelable
Modifier and Type | Field and Description |
---|---|
private I18nizableText |
_description |
private I18nizableText |
_label |
private String |
_name |
_children, _role
FIELDSET_ROLE, TAB_ROLE
Constructor and Description |
---|
SimpleViewItemGroup() |
Modifier and Type | Method and Description |
---|---|
void |
copyGroupItem(SimpleViewItemGroup groupToCopy,
View referenceView)
Copy the given group to the current one.
|
I18nizableText |
getDescription()
Retrieves the description.
|
I18nizableText |
getLabel()
Retrieves the label.
|
String |
getName()
Get the name.
|
void |
includeView(View viewToInclude,
View referenceView)
Include the given view to the group.
|
void |
setDescription(I18nizableText description)
Set the description.
|
void |
setLabel(I18nizableText label)
Set the label.
|
void |
setName(String name)
Set the name.
|
Map<String,Object> |
toJSON()
Converts the view item in a JSON map
|
addViewItem, getRole, getViewItems, hasViewItem, insertViewItem, setRole
private I18nizableText _label
private I18nizableText _description
public SimpleViewItemGroup()
public void setName(String name)
ModifiableLabelable
setName
in interface ModifiableLabelable
name
- the name.public I18nizableText getLabel()
Labelable
public void setLabel(I18nizableText label)
ModifiableLabelable
setLabel
in interface ModifiableLabelable
label
- the label.public I18nizableText getDescription()
Labelable
getDescription
in interface Labelable
public void setDescription(I18nizableText description)
ModifiableLabelable
setDescription
in interface ModifiableLabelable
description
- the description.public Map<String,Object> toJSON() throws ProcessingException
ViewItem
toJSON
in interface ViewItem
ProcessingException
- If an error occurs when converting the view itempublic void includeView(View viewToInclude, View referenceView)
viewToInclude
- the view to includereferenceView
- the reference viewpublic void copyGroupItem(SimpleViewItemGroup groupToCopy, View referenceView)
groupToCopy
- the group to copyreferenceView
- the reference view