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
Modifier and TypeFieldDescriptionstatic String
static String
static String
static String
static String
static String
static String
static String
static String
static String
Fields inherited from class org.eclipse.rdf4j.common.webapp.navigation.Group
groups, viewNames, views
Fields inherited from class org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
i18n, icon, path, viewSuffix
-
Constructor Summary
ConstructorDescriptionConstruct a new, anonymous, empty NavigationModelNavigationModel(String id)
Construct a new emtpy NavigationModel with the specified ID. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addModel(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.void
setI18nPrefix(String i18nPrefix)
void
setI18nSeparator(String i18nSeparator)
void
setI18nSuffix(String i18nSuffix)
void
setIconPrefix(String iconPrefix)
void
setIconSeparator(String iconSeparator)
void
setIconSuffix(String iconSuffix)
void
setNavigationModels(List<String> navigationModelLocations)
Set the locations of the navigation model resources to be used in the construction of this model.void
setPathPrefix(String pathPrefix)
void
setPathSeparator(String pathSeparator)
Methods inherited from class org.eclipse.rdf4j.common.webapp.navigation.Group
addGroup, addView, copyGroupsAndViews, findViewInternal, getGroup, getGroups, getView, getViewByName, getViews
Methods 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:
- Constant Field Values
-
DEFAULT_PATH_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_PATH_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_VIEW_SUFFIX
- See Also:
- Constant Field Values
-
DEFAULT_ICON_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_ICON_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_ICON_SUFFIX
- See Also:
- Constant Field Values
-
DEFAULT_I18N_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_I18N_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_I18N_SUFFIX
- See Also:
- Constant Field Values
-
-
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:NavigationNode
Get the ID of the node.- Specified by:
getId
in interfaceNavigationNode
- Overrides:
getId
in classAbstractNavigationNode
- Returns:
- the ID of the node
-
getPathPrefix
- Specified by:
getPathPrefix
in interfaceNavigationNode
- Overrides:
getPathPrefix
in classAbstractNavigationNode
-
setPathPrefix
-
getPathSeparator
- Specified by:
getPathSeparator
in interfaceNavigationNode
- Overrides:
getPathSeparator
in classAbstractNavigationNode
-
setPathSeparator
-
getIconPrefix
- Specified by:
getIconPrefix
in interfaceNavigationNode
- Overrides:
getIconPrefix
in classAbstractNavigationNode
-
setIconPrefix
-
getIconSeparator
- Specified by:
getIconSeparator
in interfaceNavigationNode
- Overrides:
getIconSeparator
in classAbstractNavigationNode
-
setIconSeparator
-
getIconSuffix
- Specified by:
getIconSuffix
in interfaceNavigationNode
- Overrides:
getIconSuffix
in classAbstractNavigationNode
-
setIconSuffix
-
getI18nPrefix
- Specified by:
getI18nPrefix
in interfaceNavigationNode
- Overrides:
getI18nPrefix
in classAbstractNavigationNode
-
setI18nPrefix
-
getI18nSeparator
- Specified by:
getI18nSeparator
in interfaceNavigationNode
- Overrides:
getI18nSeparator
in classAbstractNavigationNode
-
setI18nSeparator
-
getI18nSuffix
- Specified by:
getI18nSuffix
in interfaceNavigationNode
- Overrides:
getI18nSuffix
in classAbstractNavigationNode
-
setI18nSuffix
-
getViewSuffix
- Specified by:
getViewSuffix
in interfaceNavigationNode
- Overrides:
getViewSuffix
in 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
-