套件 | spark.automation.delegates |
類別 | public class SparkRichEditableTextAutomationHelper |
繼承 | SparkRichEditableTextAutomationHelper Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
更多範例
方法 | 定義自 | ||
---|---|---|---|
SparkRichEditableTextAutomationHelper(owner:IEventDispatcher, replayer:IAutomationObject, richEditableText:spark.components:RichEditableText)
Constructor. | SparkRichEditableTextAutomationHelper | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Records the user interaction with the text control. | SparkRichEditableTextAutomationHelper | ||
Replays TextEvens, Selection Event, and type events. | SparkRichEditableTextAutomationHelper | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
SparkRichEditableTextAutomationHelper | () | 建構函式 |
public function SparkRichEditableTextAutomationHelper(owner:IEventDispatcher, replayer:IAutomationObject, richEditableText:spark.components:RichEditableText)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數owner: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.
| |
richEditableText:spark.components:RichEditableText — The TextField object inside the component.
|
recordAutomatableEvent | () | 方法 |
public function recordAutomatableEvent(interaction:Event, cacheable:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Records the user interaction with the text control.
參數
interaction:Event — The event to record.
| |
cacheable:Boolean (default = false ) — Contains true if this is a cacheable event, and false if not.
|
replayAutomatableEvent | () | 方法 |
public function replayAutomatableEvent(event:Event):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Replays TextEvens, Selection Event, and type events. TypeEvents and Text events are replayed depending on the character typed. Both dispatches 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). In Halo, the text events were changing the contents using the text related methods as the flash player was ignoring the key evens. In Gumbo this is not the case, so for the text and type events, we need only to send the key strokes. dispatch the original keystrokes, but the Flash Player richEditableText ignores the events we are sending it.
參數
event:Event — Event to replay.
|
Boolean — If true, replay the event.
|
Tue Jun 12 2018, 03:47 PM Z