Packageardisia.components.menu
Classpublic class Menu
InheritanceMenu Inheritance mx.controls.Menu
Subclasses FlexContextMenu

Extended Halo menu that adds customization and fixes for certain visual defects.

View the technical documentation on the Ardisia Labs website for more information.

Default MXML PropertydataProvider



Public Methods
 MethodDefined By
  
Menu
  
createMenu(parent:DisplayObjectContainer, dataProvider:IList, showRoot:Boolean = true, minWidth:Number = 190):Menu
[static] Added to provide consistency with the Halo Menu.
Menu
Protected Methods
 MethodDefined By
  
Brings the activeSubMenu to the front of the popup display list.
Menu
  
eventHandler(event:Event):void
Handles events for the component.
Menu
  
offsetMenu(menu:Menu):void
Offsets the sub menus and bounds all menus to the screen.
Menu
Styles
 Style Description Defined By
  
subMenuHorizontalOffset
Type: Number CSS Inheritance: no
Horizontal offset to apply to sub menus when displayed from the default. The default value is 8.
Menu
  
subMenuVerticalOffset
Type: Number CSS Inheritance: no
Vertical offset to apply to sub menus when displayed from the default. The default value is -4.
Menu
Constructor Detail
Menu()Constructor
public function Menu()



Method Detail
bringToFront()method
protected function bringToFront():void

Brings the activeSubMenu to the front of the popup display list.

createMenu()method 
public static function createMenu(parent:DisplayObjectContainer, dataProvider:IList, showRoot:Boolean = true, minWidth:Number = 190):Menu

Added to provide consistency with the Halo Menu.

Parameters

parent:DisplayObjectContainer
 
dataProvider:IList — IList implementing dataProvider (see Halo Menu docs for explanation of structure)
 
showRoot:Boolean (default = true)
 
minWidth:Number (default = 190)

Returns
Menu
eventHandler()method 
protected function eventHandler(event:Event):void

Handles events for the component.

Parameters

event:Event — the Event that triggered the handler

offsetMenu()method 
protected function offsetMenu(menu:Menu):void

Offsets the sub menus and bounds all menus to the screen.

Parameters

menu:Menu — the Menu to offset