Package com.hybris.cockpitng.tree.node
Class TypeNode
- java.lang.Object
-
- com.hybris.backoffice.actionbar.DefaultActionDefinition
-
- com.hybris.backoffice.navigation.impl.SimpleNode
-
- com.hybris.cockpitng.tree.node.TypeNode
-
- All Implemented Interfaces:
ActionDefinition,NavigationNode,ActionAwareNode,java.io.Serializable
public class TypeNode extends SimpleNode
Navigation node representing a type. In addition to a simple node it holds the type code (e.g. "Product", "User", ...). Interpretation of what is a type is system dependent, this just holds the type code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeNode(java.lang.String id, java.lang.String code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCode()java.lang.StringgetName()Returns the name of the node.inthashCode()booleanisActionAware()Defines if node is action aware-
Methods inherited from class com.hybris.backoffice.navigation.impl.SimpleNode
addChild, create, getChildren, getContext, getData, getLevel, getParent, isDirectory, isExpandedByDefault, setActionAware, setChildren, setContext, setData, setDirectory, setExpandedByDefault, setLevel, setParent
-
Methods inherited from class com.hybris.backoffice.actionbar.DefaultActionDefinition
getDescription, getDescriptionLocKey, getGroup, getIconUri, getIconUriLocKey, getId, getNameLocKey, setDescription, setDescriptionLocKey, setGroup, setIconUri, setIconUriLocKey, setName, setNameLocKey, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.hybris.backoffice.actionbar.ActionDefinition
getDescription, getDescriptionLocKey, getGroup, getIconUri, getIconUriLocKey, getId, getNameLocKey
-
-
-
-
Method Detail
-
isActionAware
public boolean isActionAware()
Description copied from interface:ActionAwareNodeDefines if node is action aware- Specified by:
isActionAwarein interfaceActionAwareNode- Overrides:
isActionAwarein classSimpleNode- Returns:
- whether is aware or not
-
getCode
public java.lang.String getCode()
-
getName
public java.lang.String getName()
Description copied from interface:ActionDefinitionReturns the name of the node. This is only used as a node name if the localization key for the node name is not set (seeActionDefinition.getNameLocKey()).- Specified by:
getNamein interfaceActionDefinition- Overrides:
getNamein classDefaultActionDefinition- Returns:
- the name of the node
- See Also:
ActionDefinition.getNameLocKey()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classSimpleNode
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSimpleNode
-
-