public abstract class AbstractNavigationNode extends Object implements NavigationNode
| Modifier and Type | Field and Description |
|---|---|
protected String |
i18n |
protected String |
icon |
protected String |
path |
protected String |
viewSuffix |
| Constructor and Description |
|---|
AbstractNavigationNode(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyCommonAttributes(NavigationNode node) |
boolean |
equals(Object other) |
int |
getDepth()
Get the depth of this node in the hierarchy.
|
String |
getI18n() |
String |
getI18nPrefix() |
String |
getI18nSeparator() |
String |
getI18nSuffix() |
String |
getIcon() |
String |
getIconPrefix() |
String |
getIconSeparator() |
String |
getIconSuffix() |
String |
getId()
Get the ID of the node.
|
NavigationNode |
getParent()
Get the parent node of this node.
|
String |
getPath() |
String |
getPathPrefix() |
String |
getPathSeparator() |
String |
getViewSuffix() |
int |
hashCode() |
boolean |
isEnabled()
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 |
setI18n(String i18n) |
void |
setIcon(String icon) |
void |
setParent(NavigationNode parent)
Set the parent of this node.
|
void |
setPath(String path) |
void |
setViewSuffix(String viewSuffix) |
protected String path
protected String icon
protected String i18n
protected String viewSuffix
public AbstractNavigationNode(String id)
public String getId()
NavigationNodegetId in interface NavigationNodepublic boolean isHidden()
NavigationNodeisHidden in interface NavigationNodepublic void setHidden(boolean hidden)
NavigationNodesetHidden in interface NavigationNodehidden - the new hidden status of the nodepublic boolean isEnabled()
NavigationNodeisEnabled in interface NavigationNodepublic void setEnabled(boolean enabled)
NavigationNodesetEnabled in interface NavigationNodeenabled - the new enabled status of the nodepublic NavigationNode getParent()
NavigationNodegetParent in interface NavigationNodepublic void setParent(NavigationNode parent)
NavigationNodesetParent in interface NavigationNodeparent - the new parent of this nodepublic boolean isParent(NavigationNode node)
NavigationNodeisParent in interface NavigationNodenode - the node to checkpublic String getPathPrefix()
getPathPrefix in interface NavigationNodepublic String getPathSeparator()
getPathSeparator in interface NavigationNodepublic String getPath()
getPath in interface NavigationNodepublic void setPath(String path)
setPath in interface NavigationNodepublic String getIconPrefix()
getIconPrefix in interface NavigationNodepublic String getIconSeparator()
getIconSeparator in interface NavigationNodepublic String getIconSuffix()
getIconSuffix in interface NavigationNodepublic String getIcon()
getIcon in interface NavigationNodepublic void setIcon(String icon)
setIcon in interface NavigationNodepublic String getI18nPrefix()
getI18nPrefix in interface NavigationNodepublic String getI18nSeparator()
getI18nSeparator in interface NavigationNodepublic String getI18nSuffix()
getI18nSuffix in interface NavigationNodepublic String getI18n()
getI18n in interface NavigationNodepublic void setI18n(String i18n)
setI18n in interface NavigationNodepublic String getViewSuffix()
getViewSuffix in interface NavigationNodepublic void setViewSuffix(String viewSuffix)
setViewSuffix in interface NavigationNodepublic int getDepth()
NavigationNodegetDepth in interface NavigationNodeprotected void copyCommonAttributes(NavigationNode node)
Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.