public enum RenderUtils extends java.lang.Enum<RenderUtils>
Enum Constant and Description |
---|
INSTANCE
Singleton instance
|
Modifier and Type | Method and Description |
---|---|
static RenderUtils |
getInstance()
Singleton implementation
|
java.lang.String |
render(NavTreeIndex navTreeIndex,
Renderable renderable,
RenderGuard guard,
java.util.Map<java.lang.String,java.lang.String[]> params)
Call the
RenderEngine to render a given Renderable . |
java.lang.String |
renderNavigationMenu(javax.servlet.http.HttpServletRequest request,
java.lang.String menuDefinition,
java.lang.String rendererClass,
int minDepth,
int maxDepth)
Render the navigation menu for a given request and menu definition using the given
renderer class.
|
java.lang.String |
renderNavigationMenu(javax.servlet.jsp.PageContext pageContext,
java.lang.String menuDefinition,
java.lang.String rendererClass,
int minDepth,
int maxDepth)
Render the navigation menu for a given page context and menu definition using the
given renderer class.
|
static RenderUtils |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenderUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderUtils INSTANCE
public static RenderUtils[] values()
for (RenderUtils c : RenderUtils.values()) System.out.println(c);
public static RenderUtils valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static RenderUtils getInstance()
public java.lang.String renderNavigationMenu(javax.servlet.jsp.PageContext pageContext, java.lang.String menuDefinition, java.lang.String rendererClass, int minDepth, int maxDepth) throws java.lang.Exception
pageContext
- the JSP page contextmenuDefinition
- the menu definition XML filerendererClass
- the renderer class to useminDepth
- minimal depthmaxDepth
- maximal depthjava.lang.Exception
- in case of an errorpublic java.lang.String renderNavigationMenu(javax.servlet.http.HttpServletRequest request, java.lang.String menuDefinition, java.lang.String rendererClass, int minDepth, int maxDepth) throws java.lang.Exception
request
- the request objectmenuDefinition
- the menu definition XML filerendererClass
- the renderer class to useminDepth
- minimal depthmaxDepth
- maximal depthjava.lang.Exception
- in case of an errorpublic java.lang.String render(NavTreeIndex navTreeIndex, Renderable renderable, RenderGuard guard, java.util.Map<java.lang.String,java.lang.String[]> params)
RenderEngine
to render a given Renderable
.navTreeIndex
- the navigation tree indexrenderable
- the renderableguard
- the guardparams
- parameters