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
ConstructorsConstructorDescriptionCmsHelpNavigationListView(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates aCmsNaviationListViewwhich creates aCmsJspActionElementfor accessing the underlying navigation API with the given arguments .CmsHelpNavigationListView(org.opencms.jsp.CmsJspActionElement jsp) Creates aCmsNaviationListViewwhich uses the givenCmsJspActionElementfor accessing the underlying navigation API. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string containing the navigation created by using the internal members.intgetDepth()Returns the depth in levels of the navigation.Returns the navigation root path of the navigation to generate a view for.voidsetDepth(int depth) Set the depth in level of the navigation to generate a view for.voidsetNavigationRootPath(String navRootPath) Set the navigation root path of the navigation to generate a view for.
-
Constructor Details
-
CmsHelpNavigationListView
Creates aCmsNaviationListViewwhich uses the givenCmsJspActionElementfor accessing the underlying navigation API.- Parameters:
jsp- theCmsJspActionElementto use
-
CmsHelpNavigationListView
public CmsHelpNavigationListView(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates aCmsNaviationListViewwhich creates aCmsJspActionElementfor accessing the underlying navigation API with the given arguments .- Parameters:
context- thePageContextto userequest- theHttpServletRequestto useresponse- theHttpServletResponseto 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