Packageardisia.components.menuBar
Classpublic class MenuBar
InheritanceMenuBar Inheritance mx.controls.MenuBar

Extended version of the Halo MenuBar that adds some visual customization options.

Background skin and disabled icon are disabled.

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

DESIGN NOTES:

Default MXML PropertydataProvider



Protected Methods
 MethodDefined By
  
Brings the activeMenu to the front of the popup display list.
MenuBar
  
eventHandler(event:Event):void
Handles events for the component.
MenuBar
  
offsetMenu(menu:Menu):void
Offsets the top level menu based on offset styles.
MenuBar
Styles
 Style Description Defined By
  
hGap
Type: Number CSS Inheritance: no
Gap between the menu items. The default value is 2.
MenuBar
  
menuHorizontalOffset
Type: Number CSS Inheritance: no
Horizontal offset to apply to the top level menu when displayed. The default value is 0.
MenuBar
  
menuMinWidth
Type: Number CSS Inheritance: no
The minWidth of the top level drop down menu. The default value is 190.
MenuBar
  
menuPaddingBottom
Type: Number CSS Inheritance: no
Bottom padding for the drop down menu items. Ignored if NaN. The default value is NaN.
MenuBar
  
menuPaddingLeft
Type: Number CSS Inheritance: no
Left padding for the drop down menu items. Ignored if NaN. The default value is NaN.
MenuBar
  
menuPaddingRight
Type: Number CSS Inheritance: no
Right padding for the drop down menu items. Ignored if NaN. The default value is NaN.
MenuBar
  
menuPaddingTop
Type: Number CSS Inheritance: no
Top padding for the drop down menu items. Ignored if NaN. The default value is NaN.
MenuBar
  
menuVariableRowHeight
Type: Boolean CSS Inheritance: no
Set whether menu row height is variable. The default value is true.
MenuBar
  
menuVerticalOffset
Type: Number CSS Inheritance: no
Vertical offset to apply to the top level menu when displayed. The default value is 0.
MenuBar
  
subMenuHorizontalOffset
Type: Number CSS Inheritance: no
Horizontal offset to apply to sub menus when displayed.

Primarily useful to prevent the sub menu from overlapping its parent menu to avoid the ActiveWindowManager from moving the parent menu above the sub menu when moused down.

The default value is 8.
MenuBar
  
subMenuVerticalOffset
Type: Number CSS Inheritance: no
Vertical offset to apply to sub menus when displayed. The default value is -4.
MenuBar
Method Detail
bringToFront()method
protected function bringToFront():void

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

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 top level menu based on offset styles.

Parameters

menu:Menu — the Menu to offset