Class AbstractNavigationNode
java.lang.Object
org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
- All Implemented Interfaces:
Cloneable
,NavigationNode
- Direct Known Subclasses:
Group
,NavigationNodeBase
,View
Base implementation of the NavigationNode interface.
- Author:
- Herko ter Horst
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
boolean
int
getDepth()
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()
int
hashCode()
boolean
Is the node enabled/active?boolean
isHidden()
Is the node hidden?boolean
isParent
(NavigationNode node) Is this node a parent of the specified node?void
setEnabled
(boolean enabled) Set the enabled status of the node.void
setHidden
(boolean hidden) Set the hidden status of the node.void
void
void
setParent
(NavigationNode parent) Set the parent of this node.void
void
setViewSuffix
(String viewSuffix)
-
Field Details
-
path
-
icon
-
i18n
-
viewSuffix
-
-
Constructor Details
-
AbstractNavigationNode
-
-
Method Details
-
getId
Description copied from interface:NavigationNode
Get the ID of the node.- Specified by:
getId
in interfaceNavigationNode
- Returns:
- the ID of the node
-
isHidden
public boolean isHidden()Description copied from interface:NavigationNode
Is the node hidden?- Specified by:
isHidden
in interfaceNavigationNode
- Returns:
- true if the node is hidden, false otherwise
-
setHidden
public void setHidden(boolean hidden) Description copied from interface:NavigationNode
Set the hidden status of the node.- Specified by:
setHidden
in interfaceNavigationNode
- Parameters:
hidden
- the new hidden status of the node
-
isEnabled
public boolean isEnabled()Description copied from interface:NavigationNode
Is the node enabled/active?- Specified by:
isEnabled
in interfaceNavigationNode
- Returns:
- true if the node is enabled, false otherwise
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:NavigationNode
Set the enabled status of the node.- Specified by:
setEnabled
in interfaceNavigationNode
- Parameters:
enabled
- the new enabled status of the node
-
getParent
Description copied from interface:NavigationNode
Get the parent node of this node.- Specified by:
getParent
in interfaceNavigationNode
- Returns:
- the parent node of this node, or null if this node is the root NavigationModel
-
getPathPrefix
- Specified by:
getPathPrefix
in interfaceNavigationNode
-
getPathSeparator
- Specified by:
getPathSeparator
in interfaceNavigationNode
-
getPath
- Specified by:
getPath
in interfaceNavigationNode
-
setPath
- Specified by:
setPath
in interfaceNavigationNode
-
getIconPrefix
- Specified by:
getIconPrefix
in interfaceNavigationNode
-
getIconSeparator
- Specified by:
getIconSeparator
in interfaceNavigationNode
-
getIconSuffix
- Specified by:
getIconSuffix
in interfaceNavigationNode
-
getIcon
- Specified by:
getIcon
in interfaceNavigationNode
-
setIcon
- Specified by:
setIcon
in interfaceNavigationNode
-
getI18nPrefix
- Specified by:
getI18nPrefix
in interfaceNavigationNode
-
getI18nSeparator
- Specified by:
getI18nSeparator
in interfaceNavigationNode
-
getI18nSuffix
- Specified by:
getI18nSuffix
in interfaceNavigationNode
-
getI18n
- Specified by:
getI18n
in interfaceNavigationNode
-
setI18n
- Specified by:
setI18n
in interfaceNavigationNode
-
getViewSuffix
- Specified by:
getViewSuffix
in interfaceNavigationNode
-
setViewSuffix
- Specified by:
setViewSuffix
in interfaceNavigationNode
-
getDepth
public int getDepth()Description copied from interface:NavigationNode
Get 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:
getDepth
in interfaceNavigationNode
- Returns:
- the depth of the node in the hierarhcy
-
equals
-
hashCode
public int hashCode()
-