2.17.2: 2011-06-17

Package net.sf.basedb.clients.web.taglib.menu

This package is a taglib that can be used on JSP pages to build a simple drop-down menu system with unlimited levels.

See:
          Description

Class Summary
Menu This tag defines a drop-down menu that is is opened when the user moves the mouse over or clicks at the title of the menu.
Menuitem This tag defines a menu item inside a drop-down menu.
Menuseparator This tag defines a horizontal separator line inside a drop-down menu.
Submenu This tag defines a menu item inside a drop-down menu.
 

Package net.sf.basedb.clients.web.taglib.menu Description

This package is a taglib that can be used on JSP pages to build a simple drop-down menu system with unlimited levels. It consists of a Menu that can contain one or more Menuitem:s or Submenu:s. There is also a Menuseparator:s tag for inserting dividers into the menu.

Example:

<%@ taglib prefix="m" uri="/WEB-INF/menu.tld" %>
<script language="JavaScript" src="menu.js"></script>
<link rel="StyleSheet" href="menu.css"></link>

<m:menu 
   id="menubar" 
   type="horizontal" 
   clazz="menu_horizontal" 
   style="top: 10; left: 0; width: 100%;"
   >
   <submenu subid="file" title="File" />
   <submenu subid="help" title="Help" />
</m:menu>

<m:menu 
   id="file" 
   style="display: none;"
   >
   <m:menuitem title="Open" onclick="location='open.jsp'" />
   <m:menuitem title="Save" onclick="location='save.jsp'" />
   <m:menuseparator />
   <m:menuitem title="Exit" href="location='exit.jsp'" />
</m:menu>

<m:menu
   id="help" 
   style="display: none;"
   >
   <m:menuitem title="Contents..." onclick="openHelp()" />
   <m:menuseparator />
   <m:menuitem title="About..." onClick="showAbout()" />
</m:menu>

Version:
2.0
Author:
Nicklas

2.17.2: 2011-06-17