Menu
interface is implemented by the following concrete classes:
Attributes | Name and Description |
---|---|
|
caplin.component.menu.Menu()
|
Attributes | Name and Description |
---|---|
|
void
addChangeListener(caplin.component.menu.MenuChangeListener oListener)
Register to receive menu change events. |
|
void
addMenuItem(caplin.component.menu.Menu oMenuItem)
Add a new menu item to the list of child menu items. |
|
Array
getChildren()
A list of either the menu items within a sub-menu, or a grouped set of menu items. |
|
String
getDescription()
The description of either a single menu item or a sub-menu item. |
|
Function
getHandler()
The handler function that will be invoked when the menu item is clicked. |
|
boolean
isEnabled()
Returns true if this menu is currently enabled, and false otherwise. |
|
void
removeChangeListener(caplin.component.menu.MenuChangeListener oListener)
Remove a previously registered listener. |
|
void
removeMenuItem(caplin.component.menu.Menu oMenuItem)
Remove an existing menu item from the list of child menu items. |
|
void
setIsEnabled(boolean bIsEnabled)
Set whether the menu is enabled or not. |
►
caplin.component.menu.Menu()
►
void
addChangeListener(caplin.component.menu.MenuChangeListener oListener)
Register to receive menu change events.
caplin.component.menu.MenuChangeListener | oListener | The listener to be registered. |
►
void
addMenuItem(caplin.component.menu.Menu oMenuItem)
Add a new menu item to the list of child menu items.
caplin.component.menu.Menu | oMenuItem | The menu item to be added. |
►
Array
getChildren()
A list of either the menu items within a sub-menu, or a grouped set of menu items.
►
String
getDescription()
The description of either a single menu item or a sub-menu item.
►
Function
getHandler()
The handler function that will be invoked when the menu item is clicked.
►
boolean
isEnabled()
Returns true if this menu is currently enabled, and false otherwise.
►
void
removeChangeListener(caplin.component.menu.MenuChangeListener oListener)
Remove a previously registered listener.
caplin.component.menu.MenuChangeListener | oListener | A previously registered listener. |
►
void
removeMenuItem(caplin.component.menu.Menu oMenuItem)
Remove an existing menu item from the list of child menu items.
caplin.component.menu.Menu | oMenuItem | The menu item to be removed. |
►
void
setIsEnabled(boolean bIsEnabled)
Set whether the menu is enabled or not.
boolean | bIsEnabled | Whether to enable or disable the menu item |