Package | flexlib.controls |
Class | public class ScrollableMenuBar |
Inheritance | ScrollableMenuBar ![]() |
flexlib.controls.ScrollableMenu
instead of using the original We only had to override the getMenuAt method to make it generate a ScrollableMenu. In order to set the event listeners of the newly created ScrollableMenu, the eventHandler method (which was a private method of MenuBar) was duplicated in this class.
See also
Property | Defined by | ||
---|---|---|---|
arrowScrollPolicy : String
The policy to show the up and down arrows at the top and bottom of the menu
control.
| ScrollableMenuBar | ||
verticalScrollPolicy : String
Specifys the vertical scrolling policy for this control.
| ScrollableMenuBar |
Method | Defined by | ||
---|---|---|---|
Constructor
| ScrollableMenuBar | ||
getMenuAt(index:int):Menu
Overriding getMenuAt because the original method in
MenuBar creates a new Menu object.
| ScrollableMenuBar |
arrowScrollPolicy | property |
arrowScrollPolicy:String
[read-write]The policy to show the up and down arrows at the top and bottom of the menu control.
Possible values are the same as verticalScrollPolicy and can be ScrollPolicy.AUTO, ScrollPolicy.ON and ScrollPolicy.OFF. ScrollPolicy.ON shouldn't be used since it obstructs the menu items at the top and bottom of the list. Why did I allow it? I don't know.
Implementation public function get arrowScrollPolicy():String
public function set arrowScrollPolicy(value:String):void
verticalScrollPolicy | property |
verticalScrollPolicy:String
[read-write]Specifys the vertical scrolling policy for this control.
Implementation public function get verticalScrollPolicy():String
public function set verticalScrollPolicy(value:String):void
See also
ScrollableMenuBar | () | constructor |
public function ScrollableMenuBar()
Constructor
getMenuAt | () | method |
public override function getMenuAt(index:int):Menu
Overriding getMenuAt because the original method in MenuBar creates a new Menu object. We need to create a new ScrollableMenu instead, so we're forced to override this entire method.
Parametersindex:int |
Menu |