Class Group
- java.lang.Object
-
- org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
-
- org.eclipse.rdf4j.common.webapp.navigation.Group
-
- All Implemented Interfaces:
Cloneable
,NavigationNode
- Direct Known Subclasses:
NavigationModel
public class Group extends AbstractNavigationNode
Group represents a logical group of views in a NavigationModel.- Author:
- Herko ter Horst
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroup(Group group)
Add a group to this group.void
addView(View view)
Add a view to this group.Object
clone()
protected void
copyGroupsAndViews(Group group)
protected View
findViewInternal(String viewName)
Group
getGroup(String id)
Get the sub-group with the specified ID.List<Group>
getGroups()
Get the list of sub-groupsView
getView(String viewId)
View
getViewByName(String viewName)
Get the view with the specified name.List<View>
getViews()
Get the list of views.-
Methods inherited from class org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
copyCommonAttributes, equals, getDepth, getI18n, getI18nPrefix, getI18nSeparator, getI18nSuffix, getIcon, getIconPrefix, getIconSeparator, getIconSuffix, getId, getParent, getPath, getPathPrefix, getPathSeparator, getViewSuffix, hashCode, isEnabled, isHidden, isParent, setEnabled, setHidden, setI18n, setIcon, setParent, setPath, setViewSuffix
-
-
-
-
Constructor Detail
-
Group
public Group(String id)
Construct a new group with the specified ID.- Parameters:
id
- the ID of the group
-
-
Method Detail
-
addGroup
public void addGroup(Group group)
Add a group to this group. The group becomes a sub-group of this group.- Parameters:
group
- the group to add
-
getGroup
public Group getGroup(String id)
Get the sub-group with the specified ID.- Parameters:
id
- the ID of the sub-group- Returns:
- the sub-group with the specified ID, or null if this group doesn't contain a sub-group with that ID
-
addView
public void addView(View view)
Add a view to this group.- Parameters:
view
- the view to add
-
getViewByName
public View getViewByName(String viewName)
Get the view with the specified name.- Parameters:
viewName
- the name of the view (ID+suffix)- Returns:
- the view with the specified name, or null if this group doesn't contain a view with that name
-
copyGroupsAndViews
protected void copyGroupsAndViews(Group group)
-
-