Class NavigationModel
java.lang.Object
org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
org.eclipse.rdf4j.common.webapp.navigation.Group
org.eclipse.rdf4j.common.webapp.navigation.NavigationModel
- All Implemented Interfaces:
Cloneable,NavigationNode
NavigationModel represents the navigation structure of a web application. A model consists of groups and views.
- Author:
- Herko ter Horst
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.eclipse.rdf4j.common.webapp.navigation.Group
groups, viewNames, viewsFields inherited from class org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
i18n, icon, path, viewSuffix -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new, anonymous, empty NavigationModelConstruct a new emtpy NavigationModel with the specified ID. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModel(NavigationModel other) Add another NavigationModel to this one.clone()Find the view with the specified name in the NavigationModel.getId()Get the ID of the node.voidsetI18nPrefix(String i18nPrefix) voidsetI18nSeparator(String i18nSeparator) voidsetI18nSuffix(String i18nSuffix) voidsetIconPrefix(String iconPrefix) voidsetIconSeparator(String iconSeparator) voidsetIconSuffix(String iconSuffix) voidsetNavigationModels(List<String> navigationModelLocations) Set the locations of the navigation model resources to be used in the construction of this model.voidsetPathPrefix(String pathPrefix) voidsetPathSeparator(String pathSeparator) Methods inherited from class org.eclipse.rdf4j.common.webapp.navigation.Group
addGroup, addView, copyGroupsAndViews, findViewInternal, getGroup, getGroups, getView, getViewByName, getViewsMethods inherited from class org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
copyCommonAttributes, equals, getDepth, getI18n, getIcon, getParent, getPath, hashCode, isEnabled, isHidden, isParent, setEnabled, setHidden, setI18n, setIcon, setParent, setPath, setViewSuffix
-
Field Details
-
NAVIGATION_MODEL_KEY
- See Also:
-
DEFAULT_PATH_PREFIX
- See Also:
-
DEFAULT_PATH_SEPARATOR
- See Also:
-
DEFAULT_VIEW_SUFFIX
- See Also:
-
DEFAULT_ICON_PREFIX
- See Also:
-
DEFAULT_ICON_SEPARATOR
- See Also:
-
DEFAULT_ICON_SUFFIX
- See Also:
-
DEFAULT_I18N_PREFIX
- See Also:
-
DEFAULT_I18N_SEPARATOR
- See Also:
-
DEFAULT_I18N_SUFFIX
- See Also:
-
-
Constructor Details
-
NavigationModel
public NavigationModel()Construct a new, anonymous, empty NavigationModel -
NavigationModel
Construct a new emtpy NavigationModel with the specified ID.- Parameters:
id- the ID of the NavigationModel
-
-
Method Details
-
getId
Description copied from interface:NavigationNodeGet the ID of the node.- Specified by:
getIdin interfaceNavigationNode- Overrides:
getIdin classAbstractNavigationNode- Returns:
- the ID of the node
-
getPathPrefix
- Specified by:
getPathPrefixin interfaceNavigationNode- Overrides:
getPathPrefixin classAbstractNavigationNode
-
setPathPrefix
-
getPathSeparator
- Specified by:
getPathSeparatorin interfaceNavigationNode- Overrides:
getPathSeparatorin classAbstractNavigationNode
-
setPathSeparator
-
getIconPrefix
- Specified by:
getIconPrefixin interfaceNavigationNode- Overrides:
getIconPrefixin classAbstractNavigationNode
-
setIconPrefix
-
getIconSeparator
- Specified by:
getIconSeparatorin interfaceNavigationNode- Overrides:
getIconSeparatorin classAbstractNavigationNode
-
setIconSeparator
-
getIconSuffix
- Specified by:
getIconSuffixin interfaceNavigationNode- Overrides:
getIconSuffixin classAbstractNavigationNode
-
setIconSuffix
-
getI18nPrefix
- Specified by:
getI18nPrefixin interfaceNavigationNode- Overrides:
getI18nPrefixin classAbstractNavigationNode
-
setI18nPrefix
-
getI18nSeparator
- Specified by:
getI18nSeparatorin interfaceNavigationNode- Overrides:
getI18nSeparatorin classAbstractNavigationNode
-
setI18nSeparator
-
getI18nSuffix
- Specified by:
getI18nSuffixin interfaceNavigationNode- Overrides:
getI18nSuffixin classAbstractNavigationNode
-
setI18nSuffix
-
getViewSuffix
- Specified by:
getViewSuffixin interfaceNavigationNode- Overrides:
getViewSuffixin classAbstractNavigationNode
-
findView
Find the view with the specified name in the NavigationModel.- Parameters:
viewName- the name of the view, specified as a /-separated hierarchy of groups, where the part after the last / is interpreted as the name of the view itself.- Returns:
- the view, or null if no view matching the specified name could be found
-
clone
-