Class AbstractNavigationNode
- java.lang.Object
-
- org.eclipse.rdf4j.common.webapp.navigation.AbstractNavigationNode
-
- All Implemented Interfaces:
Cloneable,NavigationNode
public abstract class AbstractNavigationNode extends Object implements NavigationNode
Base implementation of the NavigationNode interface.- Author:
- Herko ter Horst
-
-
Constructor Summary
Constructors Constructor Description AbstractNavigationNode(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopyCommonAttributes(NavigationNode node)booleanequals(Object other)intgetDepth()Get the depth of this node in the hierarchy.StringgetI18n()StringgetI18nPrefix()StringgetI18nSeparator()StringgetI18nSuffix()StringgetIcon()StringgetIconPrefix()StringgetIconSeparator()StringgetIconSuffix()StringgetId()Get the ID of the node.NavigationNodegetParent()Get the parent node of this node.StringgetPath()StringgetPathPrefix()StringgetPathSeparator()StringgetViewSuffix()inthashCode()booleanisEnabled()Is 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.voidsetI18n(String i18n)voidsetIcon(String icon)voidsetParent(NavigationNode parent)Set the parent of this node.voidsetPath(String path)voidsetViewSuffix(String viewSuffix)
-
-
-
Constructor Detail
-
AbstractNavigationNode
public AbstractNavigationNode(String id)
-
-
Method Detail
-
getId
public String 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
public NavigationNode 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
-
setParent
public void setParent(NavigationNode parent)
Description copied from interface:NavigationNodeSet the parent of this node.- Specified by:
setParentin interfaceNavigationNode- Parameters:
parent- the new parent of this node
-
isParent
public boolean isParent(NavigationNode node)
Description copied from interface:NavigationNodeIs this node a parent of the specified node?- Specified by:
isParentin interfaceNavigationNode- Parameters:
node- the node to check- Returns:
- true if this node is a direct or indirect parent of the specified node, false otherwise
-
getPathPrefix
public String getPathPrefix()
- Specified by:
getPathPrefixin interfaceNavigationNode
-
getPathSeparator
public String getPathSeparator()
- Specified by:
getPathSeparatorin interfaceNavigationNode
-
getPath
public String getPath()
- Specified by:
getPathin interfaceNavigationNode
-
setPath
public void setPath(String path)
- Specified by:
setPathin interfaceNavigationNode
-
getIconPrefix
public String getIconPrefix()
- Specified by:
getIconPrefixin interfaceNavigationNode
-
getIconSeparator
public String getIconSeparator()
- Specified by:
getIconSeparatorin interfaceNavigationNode
-
getIconSuffix
public String getIconSuffix()
- Specified by:
getIconSuffixin interfaceNavigationNode
-
getIcon
public String getIcon()
- Specified by:
getIconin interfaceNavigationNode
-
setIcon
public void setIcon(String icon)
- Specified by:
setIconin interfaceNavigationNode
-
getI18nPrefix
public String getI18nPrefix()
- Specified by:
getI18nPrefixin interfaceNavigationNode
-
getI18nSeparator
public String getI18nSeparator()
- Specified by:
getI18nSeparatorin interfaceNavigationNode
-
getI18nSuffix
public String getI18nSuffix()
- Specified by:
getI18nSuffixin interfaceNavigationNode
-
getI18n
public String getI18n()
- Specified by:
getI18nin interfaceNavigationNode
-
setI18n
public void setI18n(String i18n)
- Specified by:
setI18nin interfaceNavigationNode
-
getViewSuffix
public String getViewSuffix()
- Specified by:
getViewSuffixin interfaceNavigationNode
-
setViewSuffix
public void setViewSuffix(String viewSuffix)
- 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
-
copyCommonAttributes
protected void copyCommonAttributes(NavigationNode node)
-
-