public class Tree<T> extends Object implements org.jboss.gwt.elemento.core.IsElement, Attachable
| Constructor and Description |
|---|
Tree(String id,
elemental2.core.JsArray<Node<T>> nodes)
Creates a tree and populates the tree with the specified nodes.
|
Tree(String id,
Node<T> root,
DataFunction<T> data)
Creates a tree with the specified root node.
|
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
void |
attach()
Initialized the
Api instance using the Options given at constructor argument. |
void |
clearSearch() |
void |
destroy() |
Node<T> |
getNode(String id) |
Node<T> |
getSelected() |
void |
onReady(EventHandler<Void> handler) |
void |
onSelectionChange(EventHandler<SelectionContext<T>> handler) |
void |
openNode(String id,
JsCallback callback) |
void |
refreshNode(String id) |
void |
search(String query) |
void |
selectNode(String id) |
void |
selectNode(String id,
boolean closeSelected) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetachpublic Tree(String id, Node<T> root, DataFunction<T> data)
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElementpublic void attach()
Api instance using the Options given at constructor argument. Make sure to call
this method before using any of the API methods. It's safe to call the methods multiple times (the
initialization will happen only once).attach in interface Attachablepublic void destroy()
public void openNode(String id, JsCallback callback)
public void refreshNode(String id)
public void selectNode(String id)
public void selectNode(String id, boolean closeSelected)
public void search(String query)
public void clearSearch()
public void onReady(EventHandler<Void> handler)
public void onSelectionChange(EventHandler<SelectionContext<T>> handler)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.