Package | flexlib.controls |
Class | public class ScrollablePopUpMenuButton |
Inheritance | ScrollablePopUpMenuButton ![]() ![]() |
flexlib.controls.ScrollableMenu
instead of using the original This control extends PopUpMenuButtonBase
, which was a copy/paste version of the
original mx.controls.PopUpMenuButton
. The only changes made to our copied version
of the base class was to change some private variables and methods to protected, so we can
access them here in our subclass.
The <flexlib:ScrollablePopUpMenuButton>
tag inherits all of the tag
attributes of its superclass, and adds the following tag attributes:
<flexlib:ScrollablePopUpMenuButton Properties verticalScrollPolicy="auto|on|off" arrowScrollPolicy="auto|on|off" maxHeight="undefined" />
See also
Property | Defined by | ||
---|---|---|---|
arrowScrollPolicy : String
The scrolling policy that determines when to show the up and down buttons for scrolling.
| ScrollablePopUpMenuButton | ||
![]() | dataDescriptor : IMenuDataDescriptor
The data descriptor accesses and manipulates data in the data provider.
| PopUpMenuButtonBase | |
![]() | dataProvider : Object
DataProvider for popUpMenu.
| PopUpMenuButtonBase | |
![]() | labelField : String
Name of the field in the
dataProvider Array that contains the text to
show for each menu item. | PopUpMenuButtonBase | |
![]() | labelFunction : Function
A function that determines the text to display for each menu item.
| PopUpMenuButtonBase | |
maxHeight : Number [write-only]
Overriden to also set the maxHeight of the child menu control.
| ScrollablePopUpMenuButton | ||
![]() | popUp : IUIComponent
A reference to the pop-up Menu object.
| PopUpMenuButtonBase | |
![]() | showRoot : Boolean
Specifies whether to display the top-level node or nodes of the data provider.
| PopUpMenuButtonBase | |
verticalScrollPolicy : String
Controls the vertical scrolling of the ScrollablePopUpMenuButton.
| ScrollablePopUpMenuButton |
Method | Defined by | ||
---|---|---|---|
Constructor
| ScrollablePopUpMenuButton |
arrowScrollPolicy | property |
arrowScrollPolicy:String
[read-write]The scrolling policy that determines when to show the up and down buttons for scrolling.
This property is independant of verticalScrollPolicy
. The property here
just serves a proxy to set the arrowScrollPolicy
of the child menu component.
public function get arrowScrollPolicy():String
public function set arrowScrollPolicy(value:String):void
See also
maxHeight | property |
maxHeight:Number
[write-only]Overriden to also set the maxHeight of the child menu control.
This makes setting the maxHeight also set the maxHeight of the popUpMenu item.
Implementation public function set maxHeight(value:Number):void
verticalScrollPolicy | property |
verticalScrollPolicy:String
[read-write]Controls the vertical scrolling of the ScrollablePopUpMenuButton.
Implementation public function get verticalScrollPolicy():String
public function set verticalScrollPolicy(value:String):void
ScrollablePopUpMenuButton | () | constructor |
public function ScrollablePopUpMenuButton()
Constructor