getRenderer() Returns the web application context relative path to the tree renderer
JSP that knows how to render a tree using the classes in this package.
setLabelRenderer(String labelRenderer) Sets the required, web application context relative path to a JSP for
rendering action, node, and aspect labels.
Returns an instance of Config with suitable defaults for rendering a
very limited view of the tree hierarchy. Most default settings will be
overridden for all implementations. By default there are no supported
domain actions. The default surrogate uses hash codes for identifiers
and returns the value of toString() for labels. Default label rendering
treats the value returned from getlabelData and any registered
implementations of ISurrogate or IDomainActionSet as a String and embeds
that value as-is in the generated tree. The default image set will most
likely not be accessible since its image paths are relative to these
classes and do not take into consideration the web application
architecture in which the tree is being rendered. By default branches are
shown from parents to children, unresolveable domain objects are not
show in the tree, containment is not portrayed, and domain objects are
resolved through lazy loading.
Returns the web application context relative path to a JSP for rendering
node and action labels for the tree. Called by the tree renderer JSP to
include the contents of the rendered label.
public void setIncludeUnresolveables(boolean includeUnresolveables)(Code)
setLabelRenderer
public void setLabelRenderer(String labelRenderer)(Code)
Sets the required, web application context relative path to a JSP for
rendering action, node, and aspect labels. To this JSP will be passed the
TreeModel, the current TreeNode, the type of label being rendered, and
for actions the current action. These are accessible in the called JSP
via:
TreeModel = ${requestScope.model}
Current TreeNode = ${requestScope.model.node}
Label Type = ${requestScope.model.labelType} = ['action'|'node'|'aspect']
Current Action = ${requestScope.model.action}