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
Group represents a logical group of views in a NavigationModel.
- Author:
- Herko ter Horst
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from class org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
i18n, icon, path, viewSuffix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a group to this group.void
Add a view to this group.clone()
protected void
copyGroupsAndViews
(Group group) protected View
findViewInternal
(String viewName) Get the sub-group with the specified ID.Get the list of sub-groupsgetViewByName
(String viewName) Get the view with the specified name.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
-
Field Details
-
groups
-
views
-
viewNames
-
-
Constructor Details
-
Group
Construct a new group with the specified ID.- Parameters:
id
- the ID of the group
-
-
Method Details
-
getGroup
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
-
getGroups
Get the list of sub-groups- Returns:
- the list of sub-groups
-
getView
-
getViewByName
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
-
findViewInternal
-
getViews
Get the list of views.- Returns:
- the list of views
-
clone