Class fvaswing.components.menu.FvMenu

Description

AsWing JMenu extension to add Keys accelerators feature for menu item.

See Also

Method Index

new FvMenu()
addMenuItem(), toString()

Constructor Detail

FvMenu

public function FvMenu(text, icon:Icon)

Constructor

Method Detail

addMenuItem

public function addMenuItem(caption:String, handler:Function, scope:Object, shortcut:KeyDefinition):FvMenuItem

Creates a new menu item.

Parameters

captionthe string for the menu item to be added
handlercallback
scopecontext where callback will be called
shortcutKeyDefinition accelerator

toString

public function toString():String

Returns string representation.