public class CmsJspTagNavigation extends CmsJspScopedVarBodyTagSuport
<cms:navigation var="..." /> tag,
used to access OpenCms VFS navigation information on a JSP with the EL.| Modifier and Type | Class and Description |
|---|---|
static class |
CmsJspTagNavigation.Type
Constants for
type attribute interpretation. |
| Modifier and Type | Field and Description |
|---|---|
protected CmsObject |
m_cms
The CmsObject for the current user.
|
protected java.lang.String |
m_endLevel
The optional end level for the navigation.
|
protected java.util.Locale |
m_locale
The locale for which the property should be read.
|
protected java.lang.String |
m_param
The optional parameter for the navigation.
|
protected java.lang.String |
m_resource
The optional resource for the navigation.
|
protected java.lang.String |
m_startLevel
The optional start level for the navigation.
|
protected CmsJspTagNavigation.Type |
m_type
The navigation type.
|
| Constructor and Description |
|---|
CmsJspTagNavigation()
Empty constructor, required for JSP tags.
|
CmsJspTagNavigation(javax.servlet.jsp.PageContext context)
Constructor used for scriptlet code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doStartTag() |
java.lang.String |
getEndLevel()
Returns the (optional) end level for the navigation.
|
java.lang.String |
getParam()
Returns the optional parameter for the navigation.
|
java.lang.String |
getResource()
Returns the (optional) resource for the navigation.
|
java.lang.String |
getStartLevel()
Returns the (optional) start level for the navigation.
|
java.lang.String |
getType()
Returns the selected navigation type.
|
protected void |
init()
Initializes this formatter tag.
|
void |
release() |
void |
setEndLevel(java.lang.String endLevel)
Sets the (optional) end level for the navigation.
|
void |
setLocale(java.lang.String locale)
Sets the locale for which the property should be read.
|
void |
setParam(java.lang.String param)
Sets the optional parameter for the navigation.
|
void |
setResource(java.lang.String resource)
Sets the (optional) resource for the navigation.
|
void |
setStartLevel(java.lang.String startLevel)
Sets the (optional) start level for the navigation.
|
void |
setType(java.lang.String type)
Sets the selected navigation type.
|
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributedoAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueprotected java.lang.String m_endLevel
protected java.lang.String m_param
protected java.lang.String m_resource
protected java.lang.String m_startLevel
protected CmsJspTagNavigation.Type m_type
protected java.util.Locale m_locale
public CmsJspTagNavigation()
public CmsJspTagNavigation(javax.servlet.jsp.PageContext context)
context - the JSP page contextpublic int doStartTag() throws CmsIllegalArgumentException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportCmsIllegalArgumentExceptionTag.doStartTag()public java.lang.String getEndLevel()
public java.lang.String getParam()
public java.lang.String getResource()
public java.lang.String getStartLevel()
public java.lang.String getType()
This must match one of the elements in CmsJspTagNavigation.Type.
public void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class CmsJspScopedVarBodyTagSuportTag.release()public void setEndLevel(java.lang.String endLevel)
endLevel - the (optional) end level for the navigationpublic void setLocale(java.lang.String locale)
locale - the locale for which the property should be read.public void setParam(java.lang.String param)
param - the optional parameter for the navigation to setpublic void setResource(java.lang.String resource)
resource - the (optional) resource for the navigationpublic void setStartLevel(java.lang.String startLevel)
startLevel - the (optional) start level for the navigationpublic void setType(java.lang.String type)
This must match one of the elements in CmsJspTagNavigation.Type.
type - the navigation type to setprotected void init()