2.17.2: 2011-06-17

net.sf.basedb.clients.web.taglib.menu
Class Menuseparator

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.sf.basedb.clients.web.taglib.menu.Menuseparator
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class Menuseparator
extends TagSupport

This tag defines a horizontal separator line inside a drop-down menu. This tag can only be used inside a Menu tag.

Syntax:

   <m:menuseparator
      id=....
      style=...
      visible=...
   >

Attribute Default value Required Description
id menuseparator1, menuseparator2, and so on... no The ID of the menuseparator. The value of this attribute goes directly into the standard HTML id attribute. This means that if you need a reference to the menuseparator object in your own JavaScript code, you may for example use the following code:

menuseparator = document.getElementById('<id>');

style - no The value if this attribute goes directly into the standard HTML style attribute. This allows you to apply different styles to different tables.
visible true no Use false to hide this separator entirely.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private  Menu menu
           
private static long serialVersionUID
           
private  String style
          Optional style attribute
private  boolean visible
          If the separator is visible.
 
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
Menuseparator()
           
 
Method Summary
 int doStartTag()
           
 String getStyle()
           
 boolean isVisible()
           
 void setStyle(String style)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

menu

private Menu menu

style

private String style
Optional style attribute


visible

private boolean visible
If the separator is visible.

Constructor Detail

Menuseparator

public Menuseparator()
Method Detail

setStyle

public void setStyle(String style)

getStyle

public String getStyle()

setVisible

public void setVisible(boolean visible)

isVisible

public boolean isVisible()

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class TagSupport
Throws:
JspException

2.17.2: 2011-06-17