Packageflexlib.controls
Classpublic class ScrollablePopUpMenuButton
InheritanceScrollablePopUpMenuButton Inheritance PopUpMenuButtonBase Inheritance mx.controls.PopUpButton

ScrollablePopUpMenuButton is an extension of PopUpMenuButton that uses flexlib.controls.ScrollableMenu instead of using the original mx.controls.Menu, which adds scrolling functionality to the menu.

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.

MXML Syntaxexpanded Hide MXML Syntax

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

mx.controls.PopUpMenuButton


Public Properties
 PropertyDefined by
  arrowScrollPolicy : String
The scrolling policy that determines when to show the up and down buttons for scrolling.
ScrollablePopUpMenuButton
 InheriteddataDescriptor : IMenuDataDescriptor
The data descriptor accesses and manipulates data in the data provider.
PopUpMenuButtonBase
 InheriteddataProvider : Object
DataProvider for popUpMenu.
PopUpMenuButtonBase
 InheritedlabelField : String
Name of the field in the dataProvider Array that contains the text to show for each menu item.
PopUpMenuButtonBase
 InheritedlabelFunction : 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
 InheritedpopUp : IUIComponent
A reference to the pop-up Menu object.
PopUpMenuButtonBase
 InheritedshowRoot : 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
Public Methods
 MethodDefined by
  
Constructor
ScrollablePopUpMenuButton
Events
 EventSummaryDefined by
 Inherited Dispatched when a user selects an item from the pop-up menu.PopUpMenuButtonBase
Property detail
arrowScrollPolicyproperty
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.

Implementation
    public function get arrowScrollPolicy():String
    public function set arrowScrollPolicy(value:String):void

See also

maxHeightproperty 
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
verticalScrollPolicyproperty 
verticalScrollPolicy:String  [read-write]

Controls the vertical scrolling of the ScrollablePopUpMenuButton.

Implementation
    public function get verticalScrollPolicy():String
    public function set verticalScrollPolicy(value:String):void
Constructor detail
ScrollablePopUpMenuButton()constructor
public function ScrollablePopUpMenuButton()

Constructor