public interface HasTreeItems
items and can operate them.| Modifier and Type | Interface and Description |
|---|---|
static interface |
HasTreeItems.ForIsWidget
Extends this interface with convenience methods to handle
IsWidget. |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(IsTreeItem isItem)
Adds an item wrapped by specified
IsTreeItem. |
TreeItem |
addItem(SafeHtml itemHtml)
Adds a simple tree item containing the specified html.
|
void |
addItem(TreeItem item)
Adds an tree item.
|
TreeItem |
addItem(Widget widget)
Adds a new tree item containing the specified widget.
|
TreeItem |
addTextItem(java.lang.String itemText)
Adds a simple tree item containing the specified text.
|
void |
removeItem(IsTreeItem isItem)
Removes an item.
|
void |
removeItem(TreeItem item)
Removes an item.
|
void |
removeItems()
Removes all items.
|
TreeItem addItem(SafeHtml itemHtml)
itemHtml - the html of the item to be addedvoid addItem(TreeItem item)
item - the item to be addedvoid addItem(IsTreeItem isItem)
IsTreeItem.isItem - the wrapper of item to be addedTreeItem addItem(Widget widget)
widget - the widget to be addedTreeItem addTextItem(java.lang.String itemText)
itemText - the text of the item to be addedvoid removeItem(TreeItem item)
item - the item to be removedvoid removeItem(IsTreeItem isItem)
isItem - the wrapper of item to be removedvoid removeItems()