Class
caplin.component.menu

AbstractMenu

The class is still in Beta and is subject to API changes.
AbstractMenu contains all the functionality for the following classes:

The concrete Menu classes themselves merely provide helpful constructor methods to making using AbstractMenu easier.

Constructor Summary

Attributes Name and Description
caplin.component.menu.AbstractMenu(String sDescription, Function fHandler, Array pChildren)

This abstract class should never be constructed explicitly.

Methods implemented from class caplin.component.menu.Menu:
addChangeListener, addMenuItem, getChildren, getDescription, getHandler, isEnabled, removeChangeListener, removeMenuItem, setIsEnabled
Methods implemented from class caplin.component.menu.MenuChangeListener:
onMenuChanged

Constructor Detail

caplin.component.menu.AbstractMenu(String sDescription, Function fHandler, Array pChildren)

This abstract class should never be constructed explicitly.

Parameters
String sDescription Description or name of this menu item.
Function fHandler Action fired when this menu item is clicked.
Array pChildren Child menu items for this menu group or submenu.