Example usage for Java com.google.gwt.user.client.ui Tree fields, constructors, methods, implement or subclass
The text is from its open source code.
Tree() Constructs an empty tree. | |
Tree(Resources resources) Constructs a tree that uses the specified ClientBundle for images. | |
Tree(TreeImages images) Constructs a tree that uses the specified image bundle for images. | |
Tree(Resources resources, boolean useLeafImages) Constructs a tree that uses the specified ClientBundle for images. | |
Tree(TreeImages images, boolean useLeafImages) Constructs a tree that uses the specified image bundle for images. |
HandlerRegistration | addCloseHandler(CloseHandler |
HandlerRegistration | addFocusHandler(FocusHandler handler) |
void | addItem(IsTreeItem isItem) Adds an item to the root level of this tree. |
TreeItem | addItem(IsWidget w) Overloaded version for IsWidget. |
TreeItem | addItem(SafeHtml itemHtml) Adds a simple tree item containing the specified html. |
TreeItem | addItem(String itemHtml) Adds a simple tree item containing the specified html. |
void | addItem(TreeItem item) Adds an item to the root level of this tree. |
TreeItem | addItem(Widget widget) Adds a new tree item containing the specified widget. |
HandlerRegistration | addMouseUpHandler(MouseUpHandler handler) |
HandlerRegistration | addOpenHandler(OpenHandler |
HandlerRegistration | addSelectionHandler(SelectionHandler |
TreeItem | addTextItem(String itemText) Adds a simple tree item containing the specified text. |
void | addTreeListener(TreeListener listener) |
void | clear() Clears all tree items from the current tree. |
void | ensureSelectedItemVisible() Ensures that the currently-selected item is visible, opening its parents and scrolling the tree as necessary. |
TreeItem | getItem(int index) Gets the top-level tree item at the specified index. |
int | getItemCount() Gets the number of items contained at the root of this tree. |
TreeItem | getSelectedItem() Gets the currently selected item. |
void | setAnimationEnabled(boolean enable) |
void | setSelectedItem(TreeItem item) Selects a specified item. |
void | setSelectedItem(TreeItem item, boolean fireEvents) Selects a specified item. |
Iterator | treeItemIterator() Iterator of tree items. |