Class AbstractNavigationNode
java.lang.Object
org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
- All Implemented Interfaces:
Cloneable,NavigationNode
Base implementation of the NavigationNode interface.
- Author:
- Herko ter Horst
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanintgetDepth()Get the depth of this node in the hierarchy.getI18n()getIcon()getId()Get the ID of the node.Get the parent node of this node.getPath()inthashCode()booleanIs the node enabled/active?booleanisHidden()Is the node hidden?booleanisParent(NavigationNode node) Is this node a parent of the specified node?voidsetEnabled(boolean enabled) Set the enabled status of the node.voidsetHidden(boolean hidden) Set the hidden status of the node.voidvoidvoidsetParent(NavigationNode parent) Set the parent of this node.voidvoidsetViewSuffix(String viewSuffix)
-
Field Details
-
path
-
icon
-
i18n
-
viewSuffix
-
-
Constructor Details
-
AbstractNavigationNode
-
-
Method Details
-
getId
Description copied from interface:NavigationNodeGet the ID of the node.- Specified by:
getIdin interfaceNavigationNode- Returns:
- the ID of the node
-
isHidden
public boolean isHidden()Description copied from interface:NavigationNodeIs the node hidden?- Specified by:
isHiddenin interfaceNavigationNode- Returns:
- true if the node is hidden, false otherwise
-
setHidden
public void setHidden(boolean hidden) Description copied from interface:NavigationNodeSet the hidden status of the node.- Specified by:
setHiddenin interfaceNavigationNode- Parameters:
hidden- the new hidden status of the node
-
isEnabled
public boolean isEnabled()Description copied from interface:NavigationNodeIs the node enabled/active?- Specified by:
isEnabledin interfaceNavigationNode- Returns:
- true if the node is enabled, false otherwise
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:NavigationNodeSet the enabled status of the node.- Specified by:
setEnabledin interfaceNavigationNode- Parameters:
enabled- the new enabled status of the node
-
getParent
Description copied from interface:NavigationNodeGet the parent node of this node.- Specified by:
getParentin interfaceNavigationNode- Returns:
- the parent node of this node, or null if this node is the root NavigationModel
-
getPathPrefix
- Specified by:
getPathPrefixin interfaceNavigationNode
-
getPathSeparator
- Specified by:
getPathSeparatorin interfaceNavigationNode
-
getPath
- Specified by:
getPathin interfaceNavigationNode
-
setPath
- Specified by:
setPathin interfaceNavigationNode
-
getIconPrefix
- Specified by:
getIconPrefixin interfaceNavigationNode
-
getIconSeparator
- Specified by:
getIconSeparatorin interfaceNavigationNode
-
getIconSuffix
- Specified by:
getIconSuffixin interfaceNavigationNode
-
getIcon
- Specified by:
getIconin interfaceNavigationNode
-
setIcon
- Specified by:
setIconin interfaceNavigationNode
-
getI18nPrefix
- Specified by:
getI18nPrefixin interfaceNavigationNode
-
getI18nSeparator
- Specified by:
getI18nSeparatorin interfaceNavigationNode
-
getI18nSuffix
- Specified by:
getI18nSuffixin interfaceNavigationNode
-
getI18n
- Specified by:
getI18nin interfaceNavigationNode
-
setI18n
- Specified by:
setI18nin interfaceNavigationNode
-
getViewSuffix
- Specified by:
getViewSuffixin interfaceNavigationNode
-
setViewSuffix
- Specified by:
setViewSuffixin interfaceNavigationNode
-
getDepth
public int getDepth()Description copied from interface:NavigationNodeGet the depth of this node in the hierarchy. The root NavigationModel has depth 0, all other nodes have a depth equal to the depth of their parent + 1.- Specified by:
getDepthin interfaceNavigationNode- Returns:
- the depth of the node in the hierarhcy
-
equals
-
hashCode
public int hashCode()
-