Paket | mx.automation.delegates |
Klass | public class TextFieldAutomationHelper |
Arv | TextFieldAutomationHelper Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Publika egenskaper
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
TextFieldAutomationHelper(owner:IEventDispatcher, replayer:IAutomationObject, textField:mx.core:IUITextField)
Constructor. | TextFieldAutomationHelper | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Records the user interaction with the text control. | TextFieldAutomationHelper | ||
Replays TypeTextEvents and TypeEvents. | TextFieldAutomationHelper | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
Konstruktordetaljer
TextFieldAutomationHelper | () | Konstruktor |
public function TextFieldAutomationHelper(owner:IEventDispatcher, replayer:IAutomationObject, textField:mx.core:IUITextField)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrarowner:IEventDispatcher — The UIComponent that is using the TextField. For example, if a
TextArea is using the TextField, then the TextArea is the owner.
| |
replayer:IAutomationObject — The IAutomationObject of the component.
| |
textField:mx.core:IUITextField — The TextField object inside the component.
|
Metoddetaljer
recordAutomatableEvent | () | metod |
public function recordAutomatableEvent(interaction:Event, cacheable:Boolean = false):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Records the user interaction with the text control.
Parametrar
interaction:Event — The event to record.
| |
cacheable:Boolean (default = false ) — Contains true if this is a cacheable event, and false if not.
|
replayAutomatableEvent | () | metod |
public function replayAutomatableEvent(event:Event):Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
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.
Parametrar
event:Event — Event to replay.
|
Boolean — If true, replay the event.
|
Tue Jun 12 2018, 01:40 PM Z