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()
NavigationNode
getId
in interface NavigationNode
public boolean isHidden()
NavigationNode
isHidden
in interface NavigationNode
public void setHidden(boolean hidden)
NavigationNode
setHidden
in interface NavigationNode
hidden
- the new hidden status of the nodepublic boolean isEnabled()
NavigationNode
isEnabled
in interface NavigationNode
public void setEnabled(boolean enabled)
NavigationNode
setEnabled
in interface NavigationNode
enabled
- the new enabled status of the nodepublic NavigationNode getParent()
NavigationNode
getParent
in interface NavigationNode
public void setParent(NavigationNode parent)
NavigationNode
setParent
in interface NavigationNode
parent
- the new parent of this nodepublic boolean isParent(NavigationNode node)
NavigationNode
isParent
in interface NavigationNode
node
- the node to checkpublic String getPathPrefix()
getPathPrefix
in interface NavigationNode
public String getPathSeparator()
getPathSeparator
in interface NavigationNode
public String getPath()
getPath
in interface NavigationNode
public void setPath(String path)
setPath
in interface NavigationNode
public String getIconPrefix()
getIconPrefix
in interface NavigationNode
public String getIconSeparator()
getIconSeparator
in interface NavigationNode
public String getIconSuffix()
getIconSuffix
in interface NavigationNode
public String getIcon()
getIcon
in interface NavigationNode
public void setIcon(String icon)
setIcon
in interface NavigationNode
public String getI18nPrefix()
getI18nPrefix
in interface NavigationNode
public String getI18nSeparator()
getI18nSeparator
in interface NavigationNode
public String getI18nSuffix()
getI18nSuffix
in interface NavigationNode
public String getI18n()
getI18n
in interface NavigationNode
public void setI18n(String i18n)
setI18n
in interface NavigationNode
public String getViewSuffix()
getViewSuffix
in interface NavigationNode
public void setViewSuffix(String viewSuffix)
setViewSuffix
in interface NavigationNode
public int getDepth()
NavigationNode
getDepth
in interface NavigationNode
protected void copyCommonAttributes(NavigationNode node)
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.