-
-
Method Summary
Modifier and Type Method Description static Treeinstantiate()StringgetJsBase()DataItemaddChild(String child)Adds a new root element and returns it. DataItemaddChildAt(String child, Number index)Inserts a new root element into a specified position by index and returns it. DataItemaddChildAt(DataItem child, Number index)Inserts a new root element into a specified position by index and returns it. DataItemaddChildAt(DataItem child, Number index)Inserts a new root element into a specified position by index and returns it. TreeaddData(List<DataEntry> data)voiddispatchEvents()Gets tree CRUD events dispatching. TreedispatchEvents(Boolean enabled)Starts or stops tree CRUD events dispatching. DataItemgetChildAt(Number index)Gets the child by index. voidgetChildren()Returns a copy of roots array. TraversergetTraverser()Creates tree data traverser. voidindexOfChild(DataItem child)Gets the index of child in a roots array. voidindexOfChild(DataItem child)Gets the index of child in a roots array. TreeViewmapAs(String mapping)voidnumChildren()Returns a length of roots array. voidremoveAllListeners(String type)Removes all listeners from an object. DataItemremoveChild(DataItem child)Removes tree's root data item. DataItemremoveChildAt(Number index)Removes the child at specified position. TreeremoveChildren()Removes children of the tree. TreeremoveIndexOn(String field)Removes index on a specified field. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). -
-
Constructor Detail
-
Tree
Tree(String jsChart)
-
-
Method Detail
-
instantiate
static Tree instantiate()
-
addChildAt
DataItem addChildAt(String child, Number index)
Inserts a new root element into a specified position by index and returns it.
-
addChildAt
DataItem addChildAt(DataItem child, Number index)
Inserts a new root element into a specified position by index and returns it.
-
addChildAt
DataItem addChildAt(DataItem child, Number index)
Inserts a new root element into a specified position by index and returns it.
-
dispatchEvents
void dispatchEvents()
Gets tree CRUD events dispatching.
-
dispatchEvents
Tree dispatchEvents(Boolean enabled)
Starts or stops tree CRUD events dispatching.
-
getChildAt
DataItem getChildAt(Number index)
Gets the child by index.
-
getChildren
void getChildren()
Returns a copy of roots array.
-
getTraverser
Traverser getTraverser()
Creates tree data traverser.
-
indexOfChild
void indexOfChild(DataItem child)
Gets the index of child in a roots array.
-
indexOfChild
void indexOfChild(DataItem child)
Gets the index of child in a roots array.
-
numChildren
void numChildren()
Returns a length of roots array.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
removeChild
DataItem removeChild(DataItem child)
Removes tree's root data item.
-
removeChildAt
DataItem removeChildAt(Number index)
Removes the child at specified position.
-
removeChildren
Tree removeChildren()
Removes children of the tree.
-
removeIndexOn
Tree removeIndexOn(String field)
Removes index on a specified field.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
-
-
-