| |
|
| java.lang.Object com.flexive.faces.javascript.tree.TreeNodeWriter
TreeNodeWriter | public class TreeNodeWriter (Code) | | A basic writer for tree nodes for the Dojo tree (V3).
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 1 $ |
Inner Class :public static class Node | |
Inner Class :public static interface NodeFormatter | |
Field Summary | |
final public static NodeFormatter | FORMAT_ADMINTREE Format the node using the default style for the admin backend trees. | final public static NodeFormatter | FORMAT_CONTENTTREE | final public static NodeFormatter | FORMAT_PLAIN Plain node formatter. |
FORMAT_ADMINTREE | final public static NodeFormatter FORMAT_ADMINTREE(Code) | | Format the node using the default style for the admin backend trees.
|
FORMAT_CONTENTTREE | final public static NodeFormatter FORMAT_CONTENTTREE(Code) | | |
FORMAT_PLAIN | final public static NodeFormatter FORMAT_PLAIN(Code) | | Plain node formatter. Icons may be rendered using the
TreeDocIconExtension and specifying matching CSS classes.
Preferred to FORMAT_ADMINTREE if inline node editing is required.
|
TreeNodeWriter | public TreeNodeWriter(JsonWriter out, RelativeUriMapper uriMapper, NodeFormatter formatter) throws IOException(Code) | | Create a new TreeNodeWriter using an existing JsonWriter.
Parameters: out - the JsonWriter instance to be used Parameters: formatter - the default formatter to be used throws: IOException - if the output could not be written |
TreeNodeWriter | public TreeNodeWriter(Writer out, RelativeUriMapper uriMapper, NodeFormatter formatter) throws IOException(Code) | | Create a new TreeNodeWriter for the given output writer.
Parameters: out - an output writer. Parameters: formatter - the default node formatter to be used throws: IOException - if the output could not be written |
finishResponse | public void finishResponse() throws IOException(Code) | | Closes the tree structure. No nodes can be appended to the generated tree
afterwards.
throws: IOException - if the output could not be written |
startNode | public void startNode(Node node) throws IOException(Code) | | Start a new node without closing it. Additional parameters
and nested child nodes may be appended in subsequent calls. The node must be
closed with a call to
TreeNodeWriter.closeNode .
Parameters: node - the node to be written throws: IOException - if the output could not be written |
writeNode | public void writeNode(Node node) throws IOException(Code) | | Render a leaf node.
Parameters: node - the node to be rendered throws: IOException - if the output could not be written |
|
|
|