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>
_children
The view item group's childrenprotected String
_role
The 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 void
addViewItem(ViewItem item)
Add a view item in the containerString
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.-
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: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.
-
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
-
-