## Uses of Class
com.google.gwt.user.client.ui.TreeItem

- Packages that use TreeItem
  Package | Description
  --- | ---
  com.google.gwt.user.client.ui | Widgets, Panels, and other user-interface classes.

- - ### Uses of TreeItem in com.google.gwt.user.client.ui

    Methods in com.google.gwt.user.client.ui that return TreeItem
    Modifier and Type | Method and Description
    --- | ---
    `TreeItem` | HasTreeItems.ForIsWidget.`addItem(IsWidget w)`
    `TreeItem` | Tree.`addItem(IsWidget w)` Overloaded version for IsWidget.
    `TreeItem` | HasTreeItems.`addItem(SafeHtml itemHtml)` Adds a simple tree item containing the specified html.
    `TreeItem` | Tree.`addItem(SafeHtml itemHtml)` Adds a simple tree item containing the specified html.
    `TreeItem` | TreeItem.`addItem(SafeHtml itemHtml)` Adds a child tree item containing the specified html.
    `TreeItem` | Tree.`addItem(java.lang.String itemHtml)` Deprecated. use `Tree.addItem(SafeHtml)` instead
    `TreeItem` | TreeItem.`addItem(java.lang.String itemHtml)` Deprecated. use `addItem(SafeHtml)` instead
    `TreeItem` | HasTreeItems.`addItem(Widget widget)` Adds a new tree item containing the specified widget.
    `TreeItem` | Tree.`addItem(Widget widget)` Adds a new tree item containing the specified widget.
    `TreeItem` | TreeItem.`addItem(Widget widget)` Adds a child tree item containing the specified widget.
    `TreeItem` | HasTreeItems.`addTextItem(java.lang.String itemText)` Adds a simple tree item containing the specified text.
    `TreeItem` | Tree.`addTextItem(java.lang.String itemText)` Adds a simple tree item containing the specified text.
    `TreeItem` | TreeItem.`addTextItem(java.lang.String itemText)` Adds a child tree item containing the specified text.
    `TreeItem` | IsTreeItem.`asTreeItem()` Returns the `TreeItem` aspect of the receiver.
    `TreeItem` | TreeItem.`asTreeItem()`
    `TreeItem` | TreeItem.`getChild(int index)` Gets the child at the specified index.
    `TreeItem` | Tree.`getItem(int index)` Gets the top-level tree item at the specified index.
    `TreeItem` | TreeItem.`getParentItem()` Gets this item's parent.
    `TreeItem` | Tree.`getSelectedItem()` Gets the currently selected item.
    `TreeItem` | Tree.`insertItem(int beforeIndex, SafeHtml itemHtml)` Inserts a child tree item at the specified index containing the specified html.
    `TreeItem` | TreeItem.`insertItem(int beforeIndex, SafeHtml itemHtml)` Inserts a child tree item at the specified index containing the specified html.
    `TreeItem` | Tree.`insertItem(int beforeIndex, java.lang.String itemHtml)` Deprecated. use `Tree.insertItem(int, SafeHtml)` instead
    `TreeItem` | TreeItem.`insertItem(int beforeIndex, java.lang.String itemHtml)` Deprecated. use `insertItem(int, SafeHtml)` instead
    `TreeItem` | Tree.`insertItem(int beforeIndex, Widget widget)` Inserts a child tree item at the specified index containing the specified widget.
    `TreeItem` | TreeItem.`insertItem(int beforeIndex, Widget widget)` Inserts a child tree item at the specified index containing the specified widget.
    `TreeItem` | Tree.`insertTextItem(int beforeIndex, java.lang.String itemText)` Inserts a child tree item at the specified index containing the specified text.
    `TreeItem` | TreeItem.`insertTextItem(int beforeIndex, java.lang.String itemText)` Inserts a child tree item at the specified index containing the specified text.

    Methods in com.google.gwt.user.client.ui that return types with arguments of type TreeItem
    Modifier and Type | Method and Description
    --- | ---
    `(package private) java.util.ArrayList<TreeItem>` | TreeItem.`getChildren()`
    `(package private) java.util.Map<Widget,TreeItem>` | Tree.`getChildWidgets()`
    `java.util.Iterator<TreeItem>` | Tree.`treeItemIterator()` Iterator of tree items.

    Methods in com.google.gwt.user.client.ui with parameters of type TreeItem
    Modifier and Type | Method and Description
    --- | ---
    `void` | HasTreeItems.`addItem(TreeItem item)` Adds an tree item.
    `void` | Tree.`addItem(TreeItem item)` Adds an item to the root level of this tree.
    `void` | TreeItem.`addItem(TreeItem item)` Adds another item as a child to this one.
    `(package private) void` | Tree.`adopt(Widget widget, TreeItem treeItem)`
    `(package private) void` | TreeItem.TreeItemImpl.`convertToFullNode(TreeItem item)`
    `(package private) void` | TreeItem.TreeItemImplIE6.`convertToFullNode(TreeItem item)`
    `void` | TreeListenerCollection.`fireItemSelected(TreeItem item)` Deprecated. Fires a "tree item selected" event to all listeners.
    `void` | TreeListenerCollection.`fireItemStateChanged(TreeItem item)` Deprecated. Fires a "tree item state changed" event to all listeners.
    `(package private) void` | Tree.`fireStateChanged(TreeItem item, boolean open)`
    `int` | TreeItem.`getChildIndex(TreeItem child)` Gets the index of the specified child item.
    `void` | Tree.`insertItem(int beforeIndex, TreeItem item)` Inserts an item into the root level of this tree.
    `void` | TreeItem.`insertItem(int beforeIndex, TreeItem item)` Inserts an item as a child to this one.
    `protected boolean` | Tree.`isKeyboardNavigationEnabled(TreeItem currentItem)` Indicates if keyboard navigation is enabled for the Tree and for a given TreeItem.
    `(package private) void` | TreeItem.`maybeRemoveItemFromParent(TreeItem item)` Remove a tree item from its parent if it has one.
    `(package private) void` | Tree.`maybeUpdateSelection(TreeItem itemThatChangedState, boolean isItemOpening)`
    `void` | TreeListener.`onTreeItemSelected(TreeItem item)` Deprecated. use `SelectionHandler.onSelection(com.google.gwt.event.logical.shared.SelectionEvent)` instead
    `void` | TreeListener.`onTreeItemStateChanged(TreeItem item)` Deprecated. use `OpenHandler.onOpen(com.google.gwt.event.logical.shared.OpenEvent)` and/or `CloseHandler.onClose(com.google.gwt.event.logical.shared.CloseEvent)`
    `void` | HasTreeItems.`removeItem(TreeItem item)` Removes an item.
    `void` | Tree.`removeItem(TreeItem item)` Removes an item from the root level of this tree.
    `void` | TreeItem.`removeItem(TreeItem item)` Removes one of this item's children.
    `(package private) void` | TreeItem.`setParentItem(TreeItem parent)`
    `void` | Tree.`setSelectedItem(TreeItem item)` Selects a specified item.
    `void` | Tree.`setSelectedItem(TreeItem item, boolean fireEvents)` Selects a specified item.
    `(package private) void` | Tree.`showClosedImage(TreeItem treeItem)` Called only from `TreeItem`: Shows the closed image on that tree item.
    `(package private) void` | Tree.`showLeafImage(TreeItem treeItem)` Called only from `TreeItem`: Shows the leaf image on a tree item.
    `(package private) void` | Tree.`showOpenImage(TreeItem treeItem)` Called only from `TreeItem`: Shows the open image on a tree item.

    Method parameters in com.google.gwt.user.client.ui with type arguments of type TreeItem
    Modifier and Type | Method and Description
    --- | ---
    `HandlerRegistration` | Tree.`addCloseHandler(CloseHandler<TreeItem> handler)`
    `HandlerRegistration` | Tree.`addOpenHandler(OpenHandler<TreeItem> handler)`
    `HandlerRegistration` | Tree.`addSelectionHandler(SelectionHandler<TreeItem> handler)`
    `(package private) void` | TreeItem.`addTreeItems(java.util.List<TreeItem> accum)`
    `void` | ListenerWrapper.WrappedTreeListener.`onClose(CloseEvent<TreeItem> event)`
    `void` | ListenerWrapper.WrappedTreeListener.`onOpen(OpenEvent<TreeItem> event)`
    `void` | ListenerWrapper.WrappedTreeListener.`onSelection(SelectionEvent<TreeItem> event)`