Java com.google.gwt.user.client.ui TreeItem fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client.ui TreeItem fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client.ui TreeItem.

The text is from its open source code.

Subclass

com.google.gwt.user.client.ui.TreeItem has subclasses.
Click this link to see all its subclasses.

Constructor

TreeItem(SafeHtml html)
Constructs a tree item with the given HTML.
TreeItem(String html)
Constructs a tree item with the given HTML.
TreeItem(Widget widget)
Constructs a tree item with the given Widget.
TreeItem(boolean isRoot)
Creates an empty tree item.
TreeItem()
Creates an empty tree item.

Method

voidaddItem(IsTreeItem isItem)
Adds another item as a child to this one.
TreeItemaddItem(SafeHtml itemHtml)
Adds a child tree item containing the specified html.
TreeItemaddItem(String itemHtml)
Adds a child tree item containing the specified html.
voidaddItem(TreeItem item)
Adds another item as a child to this one.
TreeItemaddItem(Widget widget)
Adds a child tree item containing the specified widget.
TreeItemaddTextItem(String itemText)
Adds a child tree item containing the specified text.
TreeItemgetChild(int index)
Gets the child at the specified index.
intgetChildCount()
Gets the number of children contained in this item.
intgetChildIndex(TreeItem child)
Gets the index of the specified child item.
ArrayListgetChildren()
StringgetHTML()
ElementgetImageElement()
TreeItemgetParentItem()
Gets this item's parent.
booleangetState()
Gets whether this item's children are displayed.
StringgetText()
TreegetTree()
Gets the tree that contains this item.
ObjectgetUserObject()
Gets the user-defined object associated with this item.
WidgetgetWidget()
Gets the Widget associated with this tree item.
TreeIteminsertItem(int beforeIndex, SafeHtml itemHtml)
Inserts a child tree item at the specified index containing the specified text.
TreeIteminsertItem(int beforeIndex, String itemText)
Inserts a child tree item at the specified index containing the specified text.
voidinsertItem(int beforeIndex, TreeItem item)
Inserts an item as a child to this one.
TreeIteminsertItem(int beforeIndex, Widget widget)
Inserts a child tree item at the specified index containing the specified widget.
booleanisSelected()
Determines whether this item is currently selected.
voidremove()
Removes this item from its tree.
voidremoveItem(IsTreeItem isItem)
Removes one of this item's children.
voidremoveItem(TreeItem item)
Removes one of this item's children.
voidremoveItems()
Removes all of this item's children.
voidsetHTML(SafeHtml html)
voidsetHTML(String html)
voidsetParentItem(TreeItem parent)
voidsetSelected(boolean selected)
Selects or deselects this item.
voidsetState(boolean open)
Sets whether this item's children are displayed.
voidsetState(boolean open, boolean fireEvents)
Sets whether this item's children are displayed.
voidsetText(String text)
voidsetUserObject(Object userObj)
Sets the user-defined object associated with this item.
voidsetWidget(Widget newWidget)
Sets the current widget.