套件 | spark.components.supportClasses |
類別 | public class DropDownController |
繼承 | DropDownController EventDispatcher Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
closeOnResize : Boolean
When true, resizing the system manager
closes the drop down. | DropDownController | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
hitAreaAdditions : Vector.<DisplayObject>
A list of display objects to consider part of the hit area
of the drop down. | DropDownController | ||
isOpen : Boolean [唯讀]
Contains true if the drop down is open. | DropDownController | ||
openButton : ButtonBase
A reference to the openButton skin part
of the drop-down component. | DropDownController | ||
rollOverOpenDelay : Number
Specifies the delay, in milliseconds, to wait for opening the drop down
when the anchor button is rolled over. | DropDownController | ||
systemManager : ISystemManager
A reference to the SystemManager used
for mouse tracking. | DropDownController |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | DropDownController | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Close the drop down and dispatch a DropDownEvent.CLOSE event. | DropDownController | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Open the drop down and dispatch a DropdownEvent.OPEN event. | DropDownController | ||
Close the drop down if it is no longer in focus. | DropDownController | ||
Handles the keyboard user interactions. | DropDownController | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
closeOnResize | 屬性 |
closeOnResize:Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4.6 |
執行階段版本: | AIR 3 |
When true
, resizing the system manager
closes the drop down.
For mobile applications, you can set this property
to false
so that the drop down stays open when the
page orientation changes.
預設值為 true。
實作
public function get closeOnResize():Boolean
public function set closeOnResize(value:Boolean):void
hitAreaAdditions | 屬性 |
public var hitAreaAdditions:Vector.<DisplayObject>
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
A list of display objects to consider part of the hit area of the drop down. Mouse clicks within any component listed as an inclusion will not automatically close the drop down.
isOpen | 屬性 |
openButton | 屬性 |
openButton:ButtonBase
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
A reference to the openButton
skin part
of the drop-down component.
實作
public function get openButton():ButtonBase
public function set openButton(value:ButtonBase):void
rollOverOpenDelay | 屬性 |
rollOverOpenDelay:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Specifies the delay, in milliseconds, to wait for opening the drop down
when the anchor button is rolled over.
If set to NaN
, then the drop down opens on a click, not a rollover.
預設值為 NaN。
實作
public function get rollOverOpenDelay():Number
public function set rollOverOpenDelay(value:Number):void
systemManager | 屬性 |
systemManager:ISystemManager
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
A reference to the SystemManager
used
for mouse tracking. if none is specified, the controller
will use the systemManager associated with the openButton.
實作
public function get systemManager():ISystemManager
public function set systemManager(value:ISystemManager):void
DropDownController | () | 建構函式 |
public function DropDownController()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Constructor.
closeDropDown | () | 方法 |
openDropDown | () | 方法 |
public function openDropDown():void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Open the drop down and dispatch a DropdownEvent.OPEN
event.
processFocusOut | () | 方法 |
public function processFocusOut(event:FocusEvent):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Close the drop down if it is no longer in focus.
參數
event:FocusEvent — The event object for the FOCUS_OUT event.
|
processKeyDown | () | 方法 |
public function processKeyDown(event:KeyboardEvent):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Handles the keyboard user interactions.
參數
event:KeyboardEvent — The event object from the keyboard event.
|
Boolean — Returns true if the keyCode was
recognized and handled.
|
Tue Jun 12 2018, 03:47 PM Z