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()
ViewItemGroup
getRole
in interface ViewItemGroup
public void setRole(String role)
ViewItemGroup
setRole
in interface ViewItemGroup
role
- the role.public List<ViewItem> getViewItems()
ViewItemContainer
getViewItems
in interface ViewItemContainer
public boolean hasViewItem(String itemName)
ViewItemContainer
hasViewItem
in interface ViewItemContainer
itemName
- the name of the itemtrue
if the container contains an item with the given name, false
otherwisepublic void addViewItem(ViewItem item)
ViewItemContainer
addViewItem
in interface ViewItemContainer
item
- the item to addpublic void insertViewItem(ViewItem item, int index)
ViewItemContainer
insertViewItem
in interface ViewItemContainer
item
- the item to insertindex
- index at which the item has to be inserted