public abstract class AbstractViewItemGroup extends Object implements ViewItemGroup
| Modifier and Type | Field and Description |
|---|---|
protected List<ViewItem> |
_children
The view item group's children
|
protected String |
_role
The role of the view item group
|
FIELDSET_ROLE, TAB_ROLE| Constructor and Description |
|---|
AbstractViewItemGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addViewItem(ViewItem item)
Add a view item in the container
|
String |
getRole()
Retrieves the role.
|
List<ViewItem> |
getViewItems()
Retrieves all the view items of this container
|
boolean |
hasViewItem(String itemName)
Checks if there is a view item with the given name
|
void |
insertViewItem(ViewItem item,
int index)
Insert a view item in the container at the given index
|
void |
setRole(String role)
Set the role.
|
public AbstractViewItemGroup()
public String getRole()
ViewItemGroupgetRole in interface ViewItemGrouppublic void setRole(String role)
ViewItemGroupsetRole in interface ViewItemGrouprole - the role.public List<ViewItem> getViewItems()
ViewItemContainergetViewItems in interface ViewItemContainerpublic boolean hasViewItem(String itemName)
ViewItemContainerhasViewItem in interface ViewItemContaineritemName - the name of the itemtrue if the container contains an item with the given name, false otherwisepublic void addViewItem(ViewItem item)
ViewItemContaineraddViewItem in interface ViewItemContaineritem - the item to addpublic void insertViewItem(ViewItem item, int index)
ViewItemContainerinsertViewItem in interface ViewItemContaineritem - the item to insertindex - index at which the item has to be inserted