dundas.view.Action Class

 

Inheritance Hierarchy

 
Class
   dundas.view.Action
      dundas.view.ChangeLayerAction
      dundas.view.DataAction
      dundas.view.DataInputAction
      dundas.view.ScriptAction
      dundas.view.ToggleTemplateCellAction
 

Constructors

 
  Name Description
init Initializes the Action. Called during construction.
 
 

Constants

 
  Name Description

AnyBoundVisual

DeleteCommand
 
 

Properties

 
  Name Description
actionType Gets the type of the action. This value is used by the server to identify the brush type. This value cannot be set in JavaScript. Instead, the derived class type should be used.
friendlyName Gets or sets the friendly name of this action which is what is shown to the end user.
id Gets or sets the ID of this action.
name Gets or sets the name of this action for script, which may change, but must be unique within the other actions on the adapter property.
 
 

Methods

 
  Name Description

Static
addActionToAdapter Helper method to add the action to the appropriate action array based on which adapter is given, and the action.
checkNameGeneration Since generating names is expensive, it should be done only on-demand.
execute Executes the action. Implementers of this method should call this._super() first to get the deferred object to return.

Static
firstActionOnAdapter Helper method to get the first action of a type on an adapter. This method will check the appropriate action array based on which adapter is given, and the type of the action.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.

Static
getActionsOnAdapter Helper method to get the actions of a type on an adapter. This method will return the appropriate action array based on which adapter is given, and the type of the action.

Static
removeActionFromAdapter Helper method to remove the action from the appropriate action array based on which adapter is given, and the action.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.