Packagecom.kapit.diagram.actions
Classpublic class KeyboardAction
InheritanceKeyboardAction Inheritance Action
SubclassesAbortAction, DebugAction, DeleteAction, GroupAction, InsertPanelAction, SelectAllAction, UngroupAction



Public Properties
 PropertyDefined by
  altkey : *
Indicates whether the ALT key has to be pressed or not to consider the KeyboardAction.
KeyboardAction
  charcode : *
The charcode of the key used in combination with the SHIFT, ALT and/or CTRL keys.
KeyboardAction
  controlkey : *
Indicates whether the CTRL key has to be pressed or not to consider the KeyboardAction.
KeyboardAction
 Inheritedid : String
ID of this action.
Action
  keycode : *
The key used in combination with the SHIFT, ALT and/or CTRL keys.
KeyboardAction
 Inheritedmanager : ActionsManager
The ActionsManager instance controlling this action (cursors, properties...).
Action
  shiftkey : *
Indicates whether the SHIFT key has to be pressed or not to consider the KeyboardAction.
KeyboardAction
 Inheritedsource : IDiagramElement
The DiagramElement instance that has triggered this action.
Action
 Inheritedview : DiagramView
The DiagramView instance where this action has been triggered.
Action
Protected Properties
 PropertyDefined by
  _alt : * = undefined
ALT Key Enabled/Disabled (true boolean value if enabled)
KeyboardAction
  _charcode : * = undefined
A Char Code Key used with the Ctrl, Shift or ALT key in a keys combination.
KeyboardAction
  _ctrl : * = undefined
Ctrl Key Enabled/Disabled (true boolean value if enabled).
KeyboardAction
 Inherited_id : String
ID reference of the action.
Action
  _keycode : * = undefined
A Key Code (no combination) like delete key.
KeyboardAction
 Inherited_manager : ActionsManager = null
ActionsManager dealing with the control of this action.
Action
  _shift : * = undefined
Shift Key Enabled/Disabled (true boolean value if enabled).
KeyboardAction
 Inherited_source : IDiagramElement = null
The DiagramElement that has triggered this action.
Action
 Inherited_view : DiagramView
The DiagramView where this action has been triggered.
Action
Public Methods
 MethodDefined by
  
KeyboardAction(id:String)
Creates a new KeyboardAction instance.
KeyboardAction
 Inherited
abort():void
Terminates the execution of this action with success equal to false.
Action
 Inherited
execute(dob:IDiagramElement = null, event:Event = null, args:Array = null):Boolean
Executes the tasks of this action.
Action
 Inherited
terminate(success:Boolean):void
Terminates the execution of this action with a termination status equal to success.
Action
Property detail
_altproperty
protected var _alt:* = undefined

ALT Key Enabled/Disabled (true boolean value if enabled)

altkeyproperty 
altkey:*  [read-write]

Indicates whether the ALT key has to be pressed or not to consider the KeyboardAction.

Implementation
    public function get altkey():*
    public function set altkey(value:*):void
_charcodeproperty 
protected var _charcode:* = undefined

A Char Code Key used with the Ctrl, Shift or ALT key in a keys combination.

charcodeproperty 
charcode:*  [read-write]

The charcode of the key used in combination with the SHIFT, ALT and/or CTRL keys.

Implementation
    public function get charcode():*
    public function set charcode(value:*):void
controlkeyproperty 
controlkey:*  [read-write]

Indicates whether the CTRL key has to be pressed or not to consider the KeyboardAction.

Implementation
    public function get controlkey():*
    public function set controlkey(value:*):void
_ctrlproperty 
protected var _ctrl:* = undefined

Ctrl Key Enabled/Disabled (true boolean value if enabled).

_keycodeproperty 
protected var _keycode:* = undefined

A Key Code (no combination) like delete key.

keycodeproperty 
keycode:*  [read-write]

The key used in combination with the SHIFT, ALT and/or CTRL keys.

Implementation
    public function get keycode():*
    public function set keycode(value:*):void
_shiftproperty 
protected var _shift:* = undefined

Shift Key Enabled/Disabled (true boolean value if enabled).

shiftkeyproperty 
shiftkey:*  [read-write]

Indicates whether the SHIFT key has to be pressed or not to consider the KeyboardAction.

Implementation
    public function get shiftkey():*
    public function set shiftkey(value:*):void
Constructor detail
KeyboardAction()constructor
public function KeyboardAction(id:String)

Creates a new KeyboardAction instance.

Parameters
id:String — Action ID.