Package | spark.components.supportClasses |
Class | public class DropDownController |
Inheritance | DropDownController EventDispatcher Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Related API Elements
Property | Defined By | ||
---|---|---|---|
closeOnResize : Boolean
When true, resizing the system manager
closes the drop down. | DropDownController | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
hitAreaAdditions : Vector.<DisplayObject>
A list of display objects to consider part of the hit area
of the drop down. | DropDownController | ||
isOpen : Boolean [read-only]
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 |
Method | Defined By | ||
---|---|---|---|
Constructor. | DropDownController | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | ||
Close the drop down and dispatch a DropDownEvent.CLOSE event. | DropDownController | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
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 | ||
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 | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
closeOnResize | property |
closeOnResize:Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.6 |
Runtime Versions: | 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.
The default value is true.
Implementation
public function get closeOnResize():Boolean
public function set closeOnResize(value:Boolean):void
hitAreaAdditions | property |
public var hitAreaAdditions:Vector.<DisplayObject>
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | 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 | property |
openButton | property |
openButton:ButtonBase
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
A reference to the openButton
skin part
of the drop-down component.
Implementation
public function get openButton():ButtonBase
public function set openButton(value:ButtonBase):void
rollOverOpenDelay | property |
rollOverOpenDelay:Number
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | 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.
The default value is NaN.
Implementation
public function get rollOverOpenDelay():Number
public function set rollOverOpenDelay(value:Number):void
systemManager | property |
systemManager:ISystemManager
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | 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.
Implementation
public function get systemManager():ISystemManager
public function set systemManager(value:ISystemManager):void
DropDownController | () | Constructor |
public function DropDownController()
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Constructor.
closeDropDown | () | method |
openDropDown | () | method |
public function openDropDown():void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Open the drop down and dispatch a DropdownEvent.OPEN
event.
processFocusOut | () | method |
public function processFocusOut(event:FocusEvent):void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Close the drop down if it is no longer in focus.
Parameters
event:FocusEvent — The event object for the FOCUS_OUT event.
|
processKeyDown | () | method |
public function processKeyDown(event:KeyboardEvent):Boolean
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 10, AIR 1.5 |
Handles the keyboard user interactions.
Parameters
event:KeyboardEvent — The event object from the keyboard event.
|
Boolean — Returns true if the keyCode was
recognized and handled.
|
Wed Nov 21 2018, 06:34 AM -08:00