Class PathElement
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.basedb.clients.web.taglib.StylableTag
net.sf.basedb.clients.web.taglib.path.PathElement
- All Implemented Interfaces:
Serializable
,DynamicAttributes
,IterationTag
,JspTag
,Tag
,DynamicActionAttributes
This tag defines an element of a path. The element is the
part that is visible to the user as a clickable link to
some other page.
Syntax:
<p:pathelement id=.... style=... title=... href=... tooltip=... visible=true|false enabled=true|false >
Attribute | Default value | Required | Description |
id | - | no | The ID of the path element. The value of this attribute
goes directly into the standard HTML id attribute.
This means that if you need a reference to the menuitem 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 menu items.
|
title | - | yes | The text that should be displayed in the menu for this menuitem. |
href | - | no | The URL that this item links to, or null if it shouldn't be linked. |
tooltip | - | no | An optional tooltip that is shown as a popup text while the user is pointing the mouse over the menuitem. Not supported by all browsers. |
visible | true | no | Set to false to hide the path element completely. |
enabled | true | no | Set to false to not link the path. This is an alternative to set the URL to null. |
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2019-04-11 09:31:26 +0200 (tors, 11 apr. 2019) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private String
URL to the linked page.private Path
The parent Path.private static final long
private String
The title of the menu item.private String
A tooltip explaining the link.private boolean
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
-
Method Summary
Modifier and TypeMethodDescriptionint
getHref()
getTitle()
boolean
boolean
void
setEnabled
(boolean enabled) void
void
void
setTooltip
(String tooltip) 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:
-
path
The parent Path. -
title
The title of the menu item. -
href
URL to the linked page. -
tooltip
A tooltip explaining the link. -
visible
private boolean visible -
enabled
private boolean enabled
-
-
Constructor Details
-
PathElement
public PathElement()
-
-
Method Details
-
setTitle
-
getTitle
-
setHref
-
getHref
-
setTooltip
-
getTooltip
-
setVisible
public void setVisible(boolean visible) - Since:
- 2.10
-
isVisible
public boolean isVisible()- Since:
- 2.10
-
setEnabled
public void setEnabled(boolean enabled) - Since:
- 2.10
-
isEnabled
public boolean isEnabled()- Since:
- 2.10
-
doStartTag
- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Throws:
JspException
-