Package org.opencms.jsp
Class CmsJspTagNavigation
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.opencms.jsp.CmsJspScopedVarBodyTagSuport
org.opencms.jsp.CmsJspTagNavigation
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
Implementation of the
<cms:navigation var="..." /> tag,
used to access OpenCms VFS navigation information on a JSP with the EL.- Since:
- 8.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConstants fortypeattribute interpretation. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CmsObjectThe CmsObject for the current user.protected StringThe optional end level for the navigation.protected LocaleThe locale for which the property should be read.protected StringThe optional parameter for the navigation.protected StringThe optional resource for the navigation.protected StringThe optional start level for the navigation.protected CmsJspTagNavigation.TypeThe navigation type.Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor, required for JSP tags.CmsJspTagNavigation(javax.servlet.jsp.PageContext context) Constructor used for scriptlet code. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the (optional) end level for the navigation.getParam()Returns the optional parameter for the navigation.Returns the (optional) resource for the navigation.Returns the (optional) start level for the navigation.getType()Returns the selected navigation type.protected voidinit()Initializes this formatter tag.voidrelease()voidsetEndLevel(String endLevel) Sets the (optional) end level for the navigation.voidSets the locale for which the property should be read.voidSets the optional parameter for the navigation.voidsetResource(String resource) Sets the (optional) resource for the navigation.voidsetStartLevel(String startLevel) Sets the (optional) start level for the navigation.voidSets the selected navigation type.Methods inherited from class org.opencms.jsp.CmsJspScopedVarBodyTagSuport
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttributeMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Field Details
-
m_cms
The CmsObject for the current user. -
m_endLevel
The optional end level for the navigation. -
m_param
The optional parameter for the navigation. -
m_resource
The optional resource for the navigation. -
m_startLevel
The optional start level for the navigation. -
m_type
The navigation type. -
m_locale
The locale for which the property should be read.
-
-
Constructor Details
-
CmsJspTagNavigation
public CmsJspTagNavigation()Empty constructor, required for JSP tags. -
CmsJspTagNavigation
Constructor used for scriptlet code.- Parameters:
context- the JSP page context
-
-
Method Details
-
doStartTag
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
CmsIllegalArgumentException- See Also:
-
getEndLevel
Returns the (optional) end level for the navigation.- Returns:
- the (optional) end level for the navigation
-
getParam
Returns the optional parameter for the navigation.- Returns:
- the optional parameter for the navigation
-
getResource
Returns the (optional) resource for the navigation.- Returns:
- the (optional) resource for the navigation
-
getStartLevel
Returns the (optional) start level for the navigation.- Returns:
- the (optional) start level for the navigation
-
getType
Returns the selected navigation type.This must match one of the elements in
CmsJspTagNavigation.Type.- Returns:
- the selected navigation type
-
release
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classCmsJspScopedVarBodyTagSuport- See Also:
-
setEndLevel
Sets the (optional) end level for the navigation.- Parameters:
endLevel- the (optional) end level for the navigation
-
setLocale
Sets the locale for which the property should be read.- Parameters:
locale- the locale for which the property should be read.
-
setParam
Sets the optional parameter for the navigation.- Parameters:
param- the optional parameter for the navigation to set
-
setResource
Sets the (optional) resource for the navigation.- Parameters:
resource- the (optional) resource for the navigation
-
setStartLevel
Sets the (optional) start level for the navigation.- Parameters:
startLevel- the (optional) start level for the navigation
-
setType
Sets the selected navigation type.This must match one of the elements in
CmsJspTagNavigation.Type.- Parameters:
type- the navigation type to set
-
init
Initializes this formatter tag.
-