Renders a DHTML menu using the HVMenu 5.5
(http://www.dynamicdrive.com/dynamicindex1/hvmenu/). The
menu is logically defined using menu classes from the
java.awt package. Assemble Menus and
MenuItems almost as you would in a GUI application.
Only a few of the awt methods are important
however:
- MenuItem.setLabel(): Sets the menu item's label.
-
MenuItem.setActionCommand(): Sets the menu
item's URL; set to an empty string if it should not link to
anything.
Also, MenuBar is not used at all. Instead, the
menu bar is represented by the root Menu.
Menu offers more methods to manage it contents.
HVMenu offers many configuration options. This renderer
does not manage those options. Instead, this class renders
only the menu definitions. Therefore, other script must be
present for this to work right: the variables that define
the look and operation of the menus and the menu script
itself.
|