Package com.hybris.backoffice.actionbar
Class DefaultActionDefinition
- java.lang.Object
-
- com.hybris.backoffice.actionbar.DefaultActionDefinition
-
- All Implemented Interfaces:
ActionDefinition,java.io.Serializable
- Direct Known Subclasses:
SimpleNode
public class DefaultActionDefinition extends java.lang.Object implements ActionDefinition
Represents a action node with name, description and icon.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultActionDefinition(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDescription()Returns the description of the node.java.lang.StringgetDescriptionLocKey()Returns the localization key for the description of the node.java.lang.StringgetGroup()Returns a group name for a node.java.lang.StringgetIconUri()Returns the icon URI of the node.java.lang.StringgetIconUriLocKey()Returns the localization key for the icon URI of the node.java.lang.StringgetId()Returns the ID of the node.java.lang.StringgetName()Returns the name of the node.java.lang.StringgetNameLocKey()Returns the localization key for the name of the node.inthashCode()voidsetDescription(java.lang.String description)voidsetDescriptionLocKey(java.lang.String descriptionLocKey)voidsetGroup(java.lang.String group)voidsetIconUri(java.lang.String iconUri)voidsetIconUriLocKey(java.lang.String iconUriLocKey)voidsetName(java.lang.String name)voidsetNameLocKey(java.lang.String nameLocKey)java.lang.StringtoString()
-
-
-
Method Detail
-
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- Returns:
- the name of the node
- See Also:
ActionDefinition.getNameLocKey()
-
setName
public void setName(java.lang.String name)
-
getNameLocKey
public java.lang.String getNameLocKey()
Description copied from interface:ActionDefinitionReturns the localization key for the name of the node. This will be used to get the localized name of the node in the current Locale. If this isnullthenActionDefinition.getName()is used as the node name.- Specified by:
getNameLocKeyin interfaceActionDefinition- Returns:
- localization key for the name of the node or
nullifActionDefinition.getName()is should be used as the node name - See Also:
ActionDefinition.getName()
-
setNameLocKey
public void setNameLocKey(java.lang.String nameLocKey)
-
getDescription
public java.lang.String getDescription()
Description copied from interface:ActionDefinitionReturns the description of the node. This is only used as a node description if the localization key for the node description is not set (seeActionDefinition.getDescriptionLocKey()).- Specified by:
getDescriptionin interfaceActionDefinition- Returns:
- the description of the node
- See Also:
ActionDefinition.getDescriptionLocKey()
-
setDescription
public void setDescription(java.lang.String description)
-
getDescriptionLocKey
public java.lang.String getDescriptionLocKey()
Description copied from interface:ActionDefinitionReturns the localization key for the description of the node. This will be used to get the localized description of the node in the current Locale. If this isnullthenActionDefinition.getDescription()is used as the node description.- Specified by:
getDescriptionLocKeyin interfaceActionDefinition- Returns:
- localization key for the description of the node or
nullifActionDefinition.getDescription()is should be used as the node description - See Also:
ActionDefinition.getDescription()
-
setDescriptionLocKey
public void setDescriptionLocKey(java.lang.String descriptionLocKey)
-
getIconUri
public java.lang.String getIconUri()
Description copied from interface:ActionDefinitionReturns the icon URI of the node. This is only used as a node icon URI if the localization key for the node icon URI is not set (seeActionDefinition.getIconUriLocKey()).- Specified by:
getIconUriin interfaceActionDefinition- Returns:
- the icon URI of the node
- See Also:
ActionDefinition.getIconUriLocKey()
-
setIconUri
public void setIconUri(java.lang.String iconUri)
-
getIconUriLocKey
public java.lang.String getIconUriLocKey()
Description copied from interface:ActionDefinitionReturns the localization key for the icon URI of the node. This will be used to get the localized icon URI of the node in the current Locale. If this isnullthenActionDefinition.getIconUri()is used as the node description.- Specified by:
getIconUriLocKeyin interfaceActionDefinition- Returns:
- localization key for the icon URI of the node or
nullifActionDefinition.getIconUri()is should be used as the node icon URI - See Also:
ActionDefinition.getIconUri()
-
setIconUriLocKey
public void setIconUriLocKey(java.lang.String iconUriLocKey)
-
getId
public java.lang.String getId()
Description copied from interface:ActionDefinitionReturns the ID of the node. Should be unique within the tree structure.- Specified by:
getIdin interfaceActionDefinition- Returns:
- ID of the node
-
getGroup
public java.lang.String getGroup()
Description copied from interface:ActionDefinitionReturns a group name for a node.Interpretation of group depends totally on toolbar's implementation.
- Specified by:
getGroupin interfaceActionDefinition- Returns:
- name of group or
nullif not applicable
-
setGroup
public void setGroup(java.lang.String group)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-