|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport info.magnolia.cms.taglibs.util.SimpleNavigationTag
public class SimpleNavigationTag
Draws a simple, css based, navigation menu. The menu layout can then be customized using css, and the default menu should be enough for most uses. Two following page properties will also be used in the menu:
navTitle
: a title to use for the navigation menu, if different from the real page titleaccessKey
: an optional access key which will be added to the linkwrappingElement
: an optional html element (div, span, p, etc) to go within the <a> tag wrapping the anchor text
Field Summary | |
---|---|
static String |
DEFAULT_HIDEINNAV_NODEDATA
Default name for "hide in nav" nodeData. |
static String |
DEFAULT_OPENMENU_NODEDATA
Default name for "open menu" nodeData. |
static String |
DEFAULT_WRAPPERELEMENT_NODEDATA
Default name for "wrapperElement" nodeData. |
static String |
EXPAND_ALL
Expand all expand all the nodes. |
static String |
EXPAND_NONE
Do not use expand functions. |
static String |
EXPAND_SHOW
Expand all expand only page that should be displayed in navigation. |
static String |
NODEDATA_ACCESSKEY
Page property: access key. |
String |
wrapperElement
html element to wrap the anchortext. |
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 | |
---|---|
SimpleNavigationTag()
|
Method Summary | |
---|---|
int |
doEndTag()
|
void |
release()
|
void |
setClassProperty(String classProperty)
Name for a page property that will hold a css class name which will be added to the html class attribute. |
void |
setContentFilter(String contentFilter)
A variable in the pageContext that contains a content filter, determining if a given page should be drawn or not. |
void |
setEndLevel(int endLevel)
The end level for navigation, defaults to 0. |
void |
setExpandAll(String expandAll)
Sitemap mode. |
void |
setHideInNav(String hideInNav)
Name for the "hide in nav" nodeData. |
void |
setMarkFirstAndLastElement(boolean flag)
If set to true, a "first" or "last" css class will be added to the list of css classes of the first and the last li in each ul. |
void |
setNofollow(String nofollow)
Name for the "nofollow" nodeData. |
void |
setOpenMenu(String openMenu)
Name for the "open menu" nodeData. |
void |
setRelativeLevels(boolean relativeLevels)
If set to true, the startLevel and endLevel values are treated relatively to the current active page. |
void |
setStartLevel(int startLevel)
The start level for navigation, defaults to 0. |
void |
setStyle(String style)
The css class to be applied to the first ul. |
void |
setWrapperElement(String wrapperElement)
When specified, all links will have the anchortext wrapped in the supplied element. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, 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 |
---|
public static final String NODEDATA_ACCESSKEY
public static final String DEFAULT_OPENMENU_NODEDATA
public static final String DEFAULT_HIDEINNAV_NODEDATA
public static final String DEFAULT_WRAPPERELEMENT_NODEDATA
public static final String EXPAND_ALL
public static final String EXPAND_SHOW
public static final String EXPAND_NONE
public String wrapperElement
Constructor Detail |
---|
public SimpleNavigationTag()
Method Detail |
---|
public void setStartLevel(int startLevel)
public void setEndLevel(int endLevel)
public void setStyle(String style)
public void setHideInNav(String hideInNav)
public void setOpenMenu(String openMenu)
public void setNofollow(String nofollow)
public void setContentFilter(String contentFilter)
public void setExpandAll(String expandAll)
public void setRelativeLevels(boolean relativeLevels)
public void setClassProperty(String classProperty)
public void setWrapperElement(String wrapperElement)
wrapperElement
- name of an html element that will be included in the anchor, wrapping the anchortextpublic void setMarkFirstAndLastElement(boolean flag)
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |