|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport net.sf.basedb.clients.web.taglib.menu.Menu
public class 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.
This tag can only be used inside a Body
tag and you should have at
least one of these tags. Use Menuitem
and/or Menuseparator
tags inside this tag to define the contents of the drop-down menu.
Syntax:
<m:menu id=... type=... clazz=... style=... open=... filltext=... >
Attribute | Default value | Required | Description |
id | - | yes | The ID of the menu. The value of this attribute
goes directly into the standard HTML id attribute.
This means that if you need a reference to the menu object in your own
JavaScript code, you may for example use the following code:
|
type | vertical | no |
If the menu should be displayed vertically or horizontally. The
allowed values are horizontal and vertical
|
clazz | menu_vertical | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different menus. If you set the type attribute to horizontal you
should also change this attribute to menu_horizontal .
|
style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different menus. Note! If you want the menu to be hidden to begin with
you can use: style="display: none;" .
|
open | enter | no | A value indicating if it requires a mouse click or not to
open a menu. Valid values are:
|
filltext | - | no | A short text that will be displayed to the far right of the menu if it is a horizontal menu. This value is ignored for vertical menus. |
Field Summary | |
---|---|
private String |
clazz
Optional class attribute |
private String |
fillText
Optional text to display to the far right of a horizontal menu |
private String |
open
If submenus opens as soon as the mouse enters or a click is required. |
private static String |
ROOT
The path to the root directory of this webserver. |
private String |
style
Optional style attribute |
private String |
type
If it is a vertical or horizontal menu. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
Menu()
|
Method Summary | |
---|---|
(package private) void |
addMenuitem(String html)
|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getClazz()
|
String |
getFilltext()
|
String |
getOpen()
|
(package private) String |
getRoot()
|
String |
getStyle()
|
String |
getType()
|
(package private) boolean |
isVertical()
|
void |
setClazz(String clazz)
|
void |
setFilltext(String fillText)
|
void |
setOpen(String open)
|
void |
setStyle(String style)
|
void |
setType(String type)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static String ROOT
private String clazz
class
attribute
private String style
style
attribute
private String type
private String open
private String fillText
Constructor Detail |
---|
public Menu()
Method Detail |
---|
public void setClazz(String clazz)
public String getClazz()
public void setStyle(String style)
public String getStyle()
public void setType(String type)
public String getType()
public void setOpen(String open)
public String getOpen()
public void setFilltext(String fillText)
public String getFilltext()
boolean isVertical()
void addMenuitem(String html) throws Exception
Exception
String getRoot()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |