Class ActionModelImpl
java.lang.Object
ch.tocco.nice2.netui.impl.actions.ActionModelImpl
- All Implemented Interfaces:
ActionModel,Serializable
- Direct Known Subclasses:
ActionGroupModelImpl,SeparatorModelImpl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeepCopy()booleangetIcon()getId()A *non-unique* id of the action.getName()Used for the text-resource key for the label.@Nullable IntegergetProperty(String key) @Nullable StringinthashCode()booleanbooleanisGroup()booleanisToggle()voidsetEnabled(boolean enabled) voidvoidvoidsetPosition(@Nullable Integer pos) voidsetProperties(Map<String, Object> properties) voidsetProperty(String key, Object value) voidsetRelativePosition(@Nullable String relativePosition, String propertyName) Set the relative position of this action model, it will be placed before or after another action model with the given property-value for this property.voidsetShortDescription(@Nullable String descr) voidsetToggle(boolean toggle) toString()
-
Constructor Details
-
ActionModelImpl
-
ActionModelImpl
Copy constructor.
-
-
Method Details
-
getName
Description copied from interface:ActionModelUsed for the text-resource key for the label.- Specified by:
getNamein interfaceActionModel- Returns:
- The label key.
-
setName
- Specified by:
setNamein interfaceActionModel
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceActionModel
-
setShortDescription
- Specified by:
setShortDescriptionin interfaceActionModel
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceActionModel
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceActionModel
-
isToggle
public boolean isToggle()- Specified by:
isTogglein interfaceActionModel
-
setToggle
public void setToggle(boolean toggle) - Specified by:
setTogglein interfaceActionModel
-
getIcon
- Specified by:
getIconin interfaceActionModel
-
setIcon
- Specified by:
setIconin interfaceActionModel
-
isGroup
public boolean isGroup() -
getId
Description copied from interface:ActionModelA *non-unique* id of the action. This id is used to map the serverside action representation (button) to the clientside action (perform method).For example the export actions (about 5 buttons) share the same action id, and have different
properties. They are all handled by the same clientside action (perform).In xml this attribute is called 'path' for historical reasons.
The id is also used for the netuiactions security.
The id may also used for the jabsorb action in the BackportAction.js (legacy code).
- Specified by:
getIdin interfaceActionModel
-
setPosition
- Specified by:
setPositionin interfaceActionModel
-
getPosition
- Specified by:
getPositionin interfaceActionModel
-
setRelativePosition
Description copied from interface:ActionModelSet the relative position of this action model, it will be placed before or after another action model with the given property-value for this property.- Specified by:
setRelativePositionin interfaceActionModel- Parameters:
relativePosition- a string in the form "[BEFORE|AFTER]:[property-value]"propertyName- the property name, can be any of the java beans property of the action model or one of the properties in the property map
-
getRelativePosition
- Specified by:
getRelativePositionin interfaceActionModel
-
getRelativePositionProperty
- Specified by:
getRelativePositionPropertyin interfaceActionModel
-
deepCopy
- Specified by:
deepCopyin interfaceActionModel
-
setProperty
- Specified by:
setPropertyin interfaceActionModel
-
getProperty
- Specified by:
getPropertyin interfaceActionModel
-
getProperties
-
setProperties
-
equals
-
hashCode
public int hashCode() -
toString
-