| Package | com.kapit.diagram.actions |
| Class | public class TextEditAction |
| Inheritance | TextEditAction ComplexAction Action |
| Property | Defined by | ||
|---|---|---|---|
![]() | _activated : Boolean = false
Activation status of this complex action.
| ComplexAction | |
![]() | _cursorid : int = -1
Cursor ID to be used by this complex action.
| ComplexAction | |
![]() | _id : String
ID reference of the action.
| Action | |
![]() | _manager : ActionsManager = null
ActionsManager dealing with the control of this action.
| Action | |
| _prevtext : String = "null"
String holding the previous text before text edition started.
| TextEditAction | ||
![]() | _source : IDiagramElement = null
The DiagramElement that has triggered this action.
| Action | |
| _text : SVGTextElement = null
SVGTextElement generated after TextEditAction is performed successfully (to be appended to the SVGDocument of the edited diagram).
| TextEditAction | ||
| _textfield : TextField = null
TextField linked to this TextEditAction (created and displayed when this action is executed).
| TextEditAction | ||
![]() | _view : DiagramView
The DiagramView where this action has been triggered.
| Action | |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new TextEditionAction instance having
"textedit" as ID. | TextEditAction | ||
|
abort():void
Aborts the TextEditAction processing and recovers the previous TextField content.
| TextEditAction | ||
![]() |
changeCursor(cursorclass:Class, dx:Number, dy:Number):void
Changes the current cursor.
| ComplexAction | |
|
execute(dob:IDiagramElement = null, event:Event = null, args:Array = null):Boolean
Executes the tasks of this action.
| TextEditAction | ||
![]() |
removeCursor():void
Removes the used cursor.
| ComplexAction | |
![]() |
rollOut(dob:IDiagramElement, event:MouseEvent):void
Sets the roll out reaction given a DiagramElement and a mouse event.
| ComplexAction | |
![]() |
rollOver(dob:IDiagramElement, event:MouseEvent):void
Sets the roll over reaction given a DiagramElement and a mouse event.
| ComplexAction | |
|
terminate(success:Boolean):void
Terminates the execution of this action with a termination status
equal to
success. | TextEditAction | ||
![]() |
uiCompleted():void
| ComplexAction | |
| Method | Defined by | ||
|---|---|---|---|
|
changeHandler(event:Event):void
| TextEditAction | ||
|
handleKeyDown(event:KeyboardEvent):void
| TextEditAction | ||
|
handleKeyUp(event:KeyboardEvent):void
Performs test on a pressed key to perform a special processing.
| TextEditAction | ||
|
killFocus(event:FocusEvent):void
When the user leaves focus on the edited text field, this function will be called to validate user modifications
and to terminate the TextEditAction processing.
| TextEditAction | ||
| _prevtext | property |
protected var _prevtext:String = "null"String holding the previous text before text edition started.
| _text | property |
protected var _text:SVGTextElement = nullSVGTextElement generated after TextEditAction is performed successfully (to be appended to the SVGDocument of the edited diagram).
| _textfield | property |
protected var _textfield:TextField = nullTextField linked to this TextEditAction (created and displayed when this action is executed).
| TextEditAction | () | constructor |
public function TextEditAction()
Creates a new TextEditionAction instance having "textedit" as ID.
| abort | () | method |
public override function abort():voidAborts the TextEditAction processing and recovers the previous TextField content.
| changeHandler | () | method |
protected function changeHandler(event:Event):voidParameters
event:Event |
| execute | () | method |
public override function execute(dob:IDiagramElement = null, event:Event = null, args:Array = null):BooleanExecutes the tasks of this action. It creates a TextField component where we can input text as SVGTextElement.
Parametersdob:IDiagramElement (default = null) — DiagramElement instance where this action has been triggered.
|
|
event:Event (default = null) — The triggered Event.
|
|
args:Array (default = null) — Parameters used in the execution of this action.
|
Boolean — Termination status of the execution of this action.
|
| handleKeyDown | () | method |
protected function handleKeyDown(event:KeyboardEvent):voidParameters
event:KeyboardEvent |
| handleKeyUp | () | method |
protected function handleKeyUp(event:KeyboardEvent):voidPerforms test on a pressed key to perform a special processing. In this case, the function is senstive to the delete KeyboardAction and given this KeyboardEvent, it prevents processing of any event listeners in nodes subsequent to the current node in the event flow.
Parametersevent:KeyboardEvent — Detetcted KeyboardEvent instance.
|
| killFocus | () | method |
protected function killFocus(event:FocusEvent):voidWhen the user leaves focus on the edited text field, this function will be called to validate user modifications and to terminate the TextEditAction processing.
Parametersevent:FocusEvent — Detected FocusEvent (due to losing focus on the TextField)
|
| terminate | () | method |
public override function terminate(success:Boolean):void
Terminates the execution of this action with a termination status
equal to success. A true
value of the success parameter indicates that the
action has been successfuly finished, while a false
value indicates that the action has been aborted.
success:Boolean — Termination status of this action. A true
value indicates that this action has been successfuly finished, while
a false value indicates that the action has been aborted.
|