Package | mx.automation.delegates |
Class | public class TextFieldAutomationHelper |
Inheritance | TextFieldAutomationHelper ![]() |
Method | Defined By | ||
---|---|---|---|
TextFieldAutomationHelper(owner:IEventDispatcher, replayer:IAutomationObject, textField:IUITextField)
Constructor.
| TextFieldAutomationHelper | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
Records the user interaction with the text control.
| TextFieldAutomationHelper | ||
Replays TypeTextEvents and TypeEvents.
| TextFieldAutomationHelper | ||
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object |
TextFieldAutomationHelper | () | Constructor |
public function TextFieldAutomationHelper(owner:IEventDispatcher, replayer:IAutomationObject, textField:IUITextField)
Constructor.
Parametersowner:IEventDispatcher |
|
replayer:IAutomationObject |
|
textField:IUITextField |
recordAutomatableEvent | () | method |
public function recordAutomatableEvent(interaction:Event, cacheable:Boolean = false):void
Records the user interaction with the text control.
Parameters
interaction:Event |
|
cacheable:Boolean (default = false )
|
replayAutomatableEvent | () | method |
public function replayAutomatableEvent(event:Event):Boolean
Replays TypeTextEvents and TypeEvents. TypeTextEvents are replayed by calling replaceText on the underlying text field. TypeEvents are replayed depending on the character typed. Both also dispatch the origin keystrokes. This is necessary to mimic the original behavior, in case any components are listening to keystroke events (for example, DataGrid listens to itemRenderer events, or if a custom component is trying to do key masking). Ideally, the code would just dispatch the original keystrokes, but the Flash Player TextField ignores the events we are sending it.
Parameters
event:Event — Event to replay.
|
Boolean — If true, replay the event.
|