public class ModelViewItemGroup extends AbstractViewItemGroup implements ModelViewItem<ModelItemGroup>
Modifier and Type | Field and Description |
---|---|
private ModelItemGroup |
_definition |
_children, _role
FIELDSET_ROLE, TAB_ROLE
Constructor and Description |
---|
ModelViewItemGroup() |
Modifier and Type | Method and Description |
---|---|
private List<ViewItem> |
_getChildrenForJSON() |
ModelItemGroup |
getDefinition()
Retrieves the referenced model item definition
|
String |
getName()
Retrieves the name of the view item
|
void |
setDefinition(ModelItemGroup definition)
Sets the referenced model item definition
|
Map<String,Object> |
toJSON()
Converts the view item in a JSON map
|
addViewItem, getRole, getViewItems, hasViewItem, insertViewItem, setRole
private ModelItemGroup _definition
public ModelViewItemGroup()
public ModelItemGroup getDefinition()
ModelViewItem
getDefinition
in interface ModelViewItem<ModelItemGroup>
public void setDefinition(ModelItemGroup definition)
ModelViewItem
setDefinition
in interface ModelViewItem<ModelItemGroup>
definition
- the referenced definitionpublic String getName()
ViewItem
public Map<String,Object> toJSON() throws ProcessingException
ViewItem
toJSON
in interface ViewItem
ProcessingException
- If an error occurs when converting the view itemprivate List<ViewItem> _getChildrenForJSON()