A control to create a menu bar. The menu bar is combined with a hover menu to create a pull down command structure like in a desktop application.
· addMenuItem
Method to add items to the menu bar.
· id
Identification name of the menu bar.
· menuTrigger
Sets the trigger mechanism which will open the hover menu.
¡ ONCLICK
Hover menu is displayed when the mouse pointer is on the item linked to the hover menu and the left mouse button is clicked - like in a pop up menu. This option is default for web browser Netscape 4.
¡ ONCONTEXTMENU
Hover menu is displayed when the mouse pointer is on the item linked to the hover menu and the right mouse button is clicked - like for a context menu.
¡ ONLRCLICK
Hover menu is displayed when the mouse pointer is on the item linked to the hover menu and the right or left mouse button is clicked.
¡ ONMOUSEOVER
Hover menu is displayed when the mouse pointer is moved over the item linked to the hover menu. This option is default for web browsers IE5 and up and Netscape 6.
· width
Defines the width of the menu bar. The width of the button is automatically adjusted to the length and amount of the 'menuItem'. To see an effect of the 'width' attribute, 'width' has to be set higher as the width defined through the amount and length of the 'menuItem'.
Attributes |
M |
Values |
Usage |
addMenuItem |
|
STANDARD
(d) |
Taglib Classlib |
id |
* |
String (cs) |
Taglib Classlib |
menuTrigger |
|
ONCLICK |
Taglib Classlib |
width |
|
Unit (10) |
Taglib Classlib |
Defines the items for the menu bar.
· enabled
A boolean value to enable (=TRUE) or disable (=FALSE) the menu item. A disabled menu item is displayed but fires no event when the item is selected (and an event handling method has been defined for the menu item).
· hoverMenu
Sets the hover menu for the menu item. The hover menu is opened when the action defined by the menu trigger is performed on the menu item.
· id
Identification name of the menu item.
· text
A string that is displayed for the menu item. A text string must be defined and must not be empty.
See also hoverMenu.
using the classlib
Form form = (Form) this.getForm(); |
When page is loaded:
Expanded view of all sub options: