public class SidenavRenderer extends Renderable
<ul> <li class=\"sidenav-selected\"> <a href=\"url\">name</a></lt> </ul>
Constructor and Description |
---|
SidenavRenderer()
Public constructor
|
Modifier and Type | Method and Description |
---|---|
void |
navNodeActive(java.lang.StringBuffer sb,
NavNode node,
NavTreeIndex treeIndex,
java.util.Map parameters,
int depth)
called to render an active node (ie, one that should be
highlighted)
|
void |
navNodeInactive(java.lang.StringBuffer sb,
NavNode node,
NavTreeIndex treeIndex,
java.util.Map parameters,
int depth)
called to render an active node (ie, one that should not be
highlighted)
|
boolean |
nodeRenderInline(int depth)
returns true if a child node should render inline with its
parent (like leftnav) vs rendering after all the current node's
siblins (like the dialog tabbed nav)
|
void |
postNav(java.lang.StringBuffer sb)
called after the full nav is rendered
|
void |
postNavLevel(java.lang.StringBuffer sb,
int depth)
called after a nav level is rendered
|
void |
postNavNode(java.lang.StringBuffer sb,
int depth)
called after a nav node is rendered
|
void |
preNav(java.lang.StringBuffer sb)
called before the nav is rendered
|
void |
preNavLevel(java.lang.StringBuffer sb,
int depth)
called before a nav level is rendered
|
void |
preNavNode(java.lang.StringBuffer sb,
int depth)
called before a nav node is rendered
|
canRender, setRenderGuard
public void preNavLevel(java.lang.StringBuffer sb, int depth)
preNavLevel
in class Renderable
sb
- string buffer to append todepth
- current depth of renderingpublic void preNavNode(java.lang.StringBuffer sb, int depth)
preNavNode
in class Renderable
sb
- string buffer to append todepth
- current depth of renderingpublic void navNodeActive(java.lang.StringBuffer sb, NavNode node, NavTreeIndex treeIndex, java.util.Map parameters, int depth)
navNodeActive
in class Renderable
sb
- string buffer to append tonode
- the node being renderedtreeIndex
- the index for the tree we are insde ofparameters
- name value pair of generic parameters for the node.depth
- the current render depthpublic void navNodeInactive(java.lang.StringBuffer sb, NavNode node, NavTreeIndex treeIndex, java.util.Map parameters, int depth)
navNodeInactive
in class Renderable
sb
- string buffer to append tonode
- the node being renderedtreeIndex
- the index for the tree we are insde ofparameters
- name value pair of generic parameters for the node.depth
- the current render depthpublic void postNavNode(java.lang.StringBuffer sb, int depth)
postNavNode
in class Renderable
sb
- string buffer to append todepth
- current depth of renderingpublic void postNavLevel(java.lang.StringBuffer sb, int depth)
postNavLevel
in class Renderable
sb
- string buffer to append todepth
- current depth of renderingpublic boolean nodeRenderInline(int depth)
nodeRenderInline
in class Renderable
depth
- the depth of the current nodepublic void preNav(java.lang.StringBuffer sb)
preNav
in class Renderable
sb
- string buffer to append topublic void postNav(java.lang.StringBuffer sb)
postNav
in class Renderable
sb
- string buffer to append to