Example usage for Java com.google.gwt.user.client.ui TreeItem fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | addItem(IsTreeItem isItem) Adds another item as a child to this one. |
TreeItem | addItem(SafeHtml itemHtml) Adds a child tree item containing the specified html. |
TreeItem | addItem(String itemHtml) Adds a child tree item containing the specified html. |
void | addItem(TreeItem item) Adds another item as a child to this one. |
TreeItem | addItem(Widget widget) Adds a child tree item containing the specified widget. |
TreeItem | addTextItem(String itemText) Adds a child tree item containing the specified text. |
TreeItem | getChild(int index) Gets the child at the specified index. |
int | getChildCount() Gets the number of children contained in this item. |
int | getChildIndex(TreeItem child) Gets the index of the specified child item. |
ArrayList | getChildren() |
String | getHTML() |
Element | getImageElement() |
TreeItem | getParentItem() Gets this item's parent. |
boolean | getState() Gets whether this item's children are displayed. |
String | getText() |
Tree | getTree() Gets the tree that contains this item. |
Object | getUserObject() Gets the user-defined object associated with this item. |
Widget | getWidget() Gets the Widget associated with this tree item. |
TreeItem | insertItem(int beforeIndex, SafeHtml itemHtml) Inserts a child tree item at the specified index containing the specified text. |
TreeItem | insertItem(int beforeIndex, String itemText) Inserts a child tree item at the specified index containing the specified text. |
void | insertItem(int beforeIndex, TreeItem item) Inserts an item as a child to this one. |
TreeItem | insertItem(int beforeIndex, Widget widget) Inserts a child tree item at the specified index containing the specified widget. |
boolean | isSelected() Determines whether this item is currently selected. |
void | remove() Removes this item from its tree. |
void | removeItem(IsTreeItem isItem) Removes one of this item's children. |
void | removeItem(TreeItem item) Removes one of this item's children. |
void | removeItems() Removes all of this item's children. |
void | setHTML(SafeHtml html) |
void | setHTML(String html) |
void | setParentItem(TreeItem parent) |
void | setSelected(boolean selected) Selects or deselects this item. |
void | setState(boolean open) Sets whether this item's children are displayed. |
void | setState(boolean open, boolean fireEvents) Sets whether this item's children are displayed. |
void | setText(String text) |
void | setUserObject(Object userObj) Sets the user-defined object associated with this item. |
void | setWidget(Widget newWidget) Sets the current widget. |