Package org.nuxeo.ecm.webengine.ui.tree
Class JSonTree
- java.lang.Object
-
- org.nuxeo.ecm.webengine.ui.tree.JSonTree
-
- Direct Known Subclasses:
DirectoryTree
,DocumentTree
public abstract class JSonTree extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected TreeModelImpl
tree
-
Constructor Summary
Constructors Constructor Description JSonTree()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
enter(WebContext ctx, String path)
protected String
enter(WebContext ctx, String path, JSonTreeSerializer serializer)
protected abstract Object
getInput(WebContext ctx)
protected abstract ContentProvider
getProvider(WebContext ctx)
protected abstract JSonTreeSerializer
getSerializer(WebContext ctx)
TreeModel
getTree()
String
getTreeAsJSONArray(WebContext ctx)
protected void
toggle(String path)
String
updateSelection(WebContext ctx)
String
updateSelection(WebContext ctx, ContentProvider provider, JSonTreeSerializer serializer)
root=ID - enter node ID toggle=ID - toggle expanded state for node ID
-
-
-
Field Detail
-
tree
protected TreeModelImpl tree
-
-
Constructor Detail
-
JSonTree
public JSonTree()
-
-
Method Detail
-
getInput
protected abstract Object getInput(WebContext ctx)
-
getProvider
protected abstract ContentProvider getProvider(WebContext ctx)
-
getSerializer
protected abstract JSonTreeSerializer getSerializer(WebContext ctx)
-
updateSelection
public String updateSelection(WebContext ctx)
-
enter
public String enter(WebContext ctx, String path)
-
updateSelection
public String updateSelection(WebContext ctx, ContentProvider provider, JSonTreeSerializer serializer)
root=ID - enter node ID toggle=ID - toggle expanded state for node ID
-
getTreeAsJSONArray
public String getTreeAsJSONArray(WebContext ctx)
-
enter
protected String enter(WebContext ctx, String path, JSonTreeSerializer serializer)
-
-