Class Menuseparator
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.StylableTag
net.sf.basedb.clients.web.taglib.menu.Menuseparator
- All Implemented Interfaces:
Serializable
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,DynamicActionAttributes
public class Menuseparator extends StylableTag
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=... clazz=... subclass=... 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:
|
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
Fields Modifier and Type Field Description private Menu
menu
private static long
serialVersionUID
private String
style
Optionalstyle
attributeprivate 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
Constructors Constructor Description Menuseparator()
-
Method Summary
Modifier and Type Method Description int
doStartTag()
boolean
isVisible()
void
setDynamic(Iterator<DynamicActionAttribute> dynamicAttributes)
void
setVisible(boolean visible)
Methods inherited from class net.sf.basedb.clients.web.taglib.StylableTag
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, initDefaultAttributes, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
style
Optionalstyle
attribute -
visible
private boolean visibleIf the separator is visible.
-
-
Constructor Details
-
Menuseparator
public Menuseparator()
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) -
isVisible
public boolean isVisible() -
setDynamic
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-