Package org.ametys.runtime.model
Class AbstractViewItemGroup
- java.lang.Object
-
- org.ametys.runtime.model.AbstractViewItemGroup
-
- All Implemented Interfaces:
ViewItem,ViewItemContainer,ViewItemGroup
- Direct Known Subclasses:
ModelViewItemGroup,SimpleViewItemGroup
public abstract class AbstractViewItemGroup extends Object implements ViewItemGroup
Abstract class for group of view items
-
-
Field Summary
Fields Modifier and Type Field Description protected List<ViewItem>_childrenThe view item group's childrenprotected String_roleThe role of the view item group-
Fields inherited from interface org.ametys.runtime.model.ViewItemGroup
FIELDSET_ROLE, TAB_ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractViewItemGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddViewItem(ViewItem item)Add a view item in the containerStringgetRole()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.-
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
-
-
-
-
Constructor Detail
-
AbstractViewItemGroup
public AbstractViewItemGroup()
-
-
Method Detail
-
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.
-
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
-
-