public class PathElement extends StylableTag
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. |
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private String |
href
URL to the linked page.
|
private Path |
path
The parent Path.
|
private static long |
serialVersionUID |
private String |
title
The title of the menu item.
|
private String |
tooltip
A tooltip explaining the link.
|
private boolean |
visible |
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
PathElement() |
Modifier and Type | Method and Description |
---|---|
int |
doStartTag() |
String |
getHref() |
String |
getTitle() |
String |
getTooltip() |
boolean |
isEnabled() |
boolean |
isVisible() |
void |
setEnabled(boolean enabled) |
void |
setHref(String href) |
void |
setTitle(String title) |
void |
setTooltip(String tooltip) |
void |
setVisible(boolean visible) |
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
private Path path
private String title
private String href
private String tooltip
private boolean visible
private boolean enabled
public void setTitle(String title)
public String getTitle()
public void setHref(String href)
public String getHref()
public void setTooltip(String tooltip)
public String getTooltip()
public void setVisible(boolean visible)
public boolean isVisible()
public void setEnabled(boolean enabled)
public boolean isEnabled()
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException