Package org.opencms.workplace.help
Class CmsHelpNavigationListView
java.lang.Object
org.opencms.workplace.help.CmsHelpNavigationListView
Generates a simple TOC - list by using a navigation model
obtained from a
CmsJspNavBuilder
. This is a simpler facade to a fixed html - list based layout. Only a navigation root path and a desired depth have to be set. It is not specific to the online help.
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionCmsHelpNavigationListView
(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates aCmsNaviationListView
which creates aCmsJspActionElement
for accessing the underlying navigation API with the given arguments .CmsHelpNavigationListView
(org.opencms.jsp.CmsJspActionElement jsp) Creates aCmsNaviationListView
which uses the givenCmsJspActionElement
for accessing the underlying navigation API. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string containing the navigation created by using the internal members.int
getDepth()
Returns the depth in levels of the navigation.Returns the navigation root path of the navigation to generate a view for.void
setDepth
(int depth) Set the depth in level of the navigation to generate a view for.void
setNavigationRootPath
(String navRootPath) Set the navigation root path of the navigation to generate a view for.
-
Constructor Details
-
CmsHelpNavigationListView
Creates aCmsNaviationListView
which uses the givenCmsJspActionElement
for accessing the underlying navigation API.- Parameters:
jsp
- theCmsJspActionElement
to use
-
CmsHelpNavigationListView
public CmsHelpNavigationListView(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates aCmsNaviationListView
which creates aCmsJspActionElement
for accessing the underlying navigation API with the given arguments .- Parameters:
context
- thePageContext
to userequest
- theHttpServletRequest
to useresponse
- theHttpServletResponse
to use
-
-
Method Details
-
getDepth
Returns the depth in levels of the navigation.- Returns:
- the depth in levels of the navigation.
-
getSiteRootPath
Returns the navigation root path of the navigation to generate a view for.- Returns:
- the navigation root path of the navigation to generate a view for.
-
setDepth
Set the depth in level of the navigation to generate a view for.- Parameters:
depth
- the depth in level of the navigation to generate a view for to set