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 privateAbstractCompareViewItemGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddViewItem(ViewItem item)Add a view item in the containerStringgetName()Retrieves the name of the view itemStringgetRole()Retrieves the role.List<ViewItem>getViewItems()Retrieves all the view items of this containervoidinsertViewItem(ViewItem item, int index)Insert a view item in the container at the given indexvoidsetRole(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:ViewItemConverts the view item in a JSON map- Specified by:
toJSONin 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:ViewItemRetrieves the name of the view item
-
getViewItems
public List<ViewItem> getViewItems()
Description copied from interface:ViewItemContainerRetrieves all the view items of this container- Specified by:
getViewItemsin interfaceViewItemContainer- Returns:
- the view items
-
addViewItem
public void addViewItem(ViewItem item)
Description copied from interface:ViewItemContainerAdd a view item in the container- Specified by:
addViewItemin interfaceViewItemContainer- Parameters:
item- the item to add
-
insertViewItem
public void insertViewItem(ViewItem item, int index)
Description copied from interface:ViewItemContainerInsert a view item in the container at the given index- Specified by:
insertViewItemin interfaceViewItemContainer- Parameters:
item- the item to insertindex- index at which the item has to be inserted
-
getRole
public String getRole()
Description copied from interface:ViewItemGroupRetrieves the role.- Specified by:
getRolein interfaceViewItemGroup- Returns:
- the role.
-
setRole
public void setRole(String role)
Description copied from interface:ViewItemGroupSet the role.- Specified by:
setRolein interfaceViewItemGroup- Parameters:
role- the role.
-
-