Package org.ametys.cms.content.version
Class CompareView.AbstractCompareViewItemGroup
- java.lang.Object
-
- org.ametys.cms.content.version.CompareView.AbstractCompareViewItemGroup
-
- All Implemented Interfaces:
ViewItem
,ViewItemContainer
,ViewItemGroup
- Direct Known Subclasses:
CompareView.CompareModelViewItemGroup
,CompareView.CompareSimpleViewItemGroup
- Enclosing class:
- CompareView
private abstract static class CompareView.AbstractCompareViewItemGroup extends Object implements ViewItemGroup
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractViewItemGroup
_wrapped
-
Fields inherited from interface org.ametys.runtime.model.ViewItemGroup
FIELDSET_ROLE, TAB_ROLE
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AbstractCompareViewItemGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addViewItem(ViewItem item)
Add a view item in the containerString
getName()
Retrieves the name of the view itemString
getRole()
Retrieves the role.List<ViewItem>
getViewItems()
Retrieves all the view items of this containervoid
insertViewItem(ViewItem item, int index)
Insert a view item in the container at the given indexvoid
setRole(String role)
Set the role.Map<String,Object>
toJSON()
Converts the view item in a JSON map-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.runtime.model.ViewItemContainer
getModelViewItem, hasModelViewItem
-
-
-
-
Field Detail
-
_wrapped
protected AbstractViewItemGroup _wrapped
-
-
Constructor Detail
-
AbstractCompareViewItemGroup
private AbstractCompareViewItemGroup()
-
-
Method Detail
-
toJSON
public Map<String,Object> toJSON() throws ProcessingException
Description copied from interface:ViewItem
Converts the view item in a JSON map- Specified by:
toJSON
in interfaceViewItem
- Returns:
- The view item as a JSON map
- Throws:
ProcessingException
- If an error occurs when converting the view item
-
getName
public String getName()
Description copied from interface:ViewItem
Retrieves the name of the view item
-
getViewItems
public List<ViewItem> getViewItems()
Description copied from interface:ViewItemContainer
Retrieves all the view items of this container- Specified by:
getViewItems
in interfaceViewItemContainer
- Returns:
- the view items
-
addViewItem
public void addViewItem(ViewItem item)
Description copied from interface:ViewItemContainer
Add a view item in the container- Specified by:
addViewItem
in interfaceViewItemContainer
- Parameters:
item
- the item to add
-
insertViewItem
public void insertViewItem(ViewItem item, int index)
Description copied from interface:ViewItemContainer
Insert a view item in the container at the given index- Specified by:
insertViewItem
in interfaceViewItemContainer
- Parameters:
item
- the item to insertindex
- index at which the item has to be inserted
-
getRole
public String getRole()
Description copied from interface:ViewItemGroup
Retrieves the role.- Specified by:
getRole
in interfaceViewItemGroup
- Returns:
- the role.
-
setRole
public void setRole(String role)
Description copied from interface:ViewItemGroup
Set the role.- Specified by:
setRole
in interfaceViewItemGroup
- Parameters:
role
- the role.
-
-