Package com.google.gwt.user.client.ui
Interface HasTreeItems
-
- All Known Subinterfaces:
HasTreeItems.ForIsWidget
public interface HasTreeItemsA widget that implements this interface containsitemsand can operate them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHasTreeItems.ForIsWidgetExtends this interface with convenience methods to handleIsWidget.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TreeItemaddItem(SafeHtml itemHtml)Adds a simple tree item containing the specified html.voidaddItem(IsTreeItem isItem)Adds an item wrapped by specifiedIsTreeItem.voidaddItem(TreeItem item)Adds an tree item.TreeItemaddItem(Widget widget)Adds a new tree item containing the specified widget.TreeItemaddTextItem(java.lang.String itemText)Adds a simple tree item containing the specified text.voidremoveItem(IsTreeItem isItem)Removes an item.voidremoveItem(TreeItem item)Removes an item.voidremoveItems()Removes all items.
-
-
-
Method Detail
-
addItem
TreeItem addItem(SafeHtml itemHtml)
Adds a simple tree item containing the specified html.- Parameters:
itemHtml- the html of the item to be added- Returns:
- the item that was added
-
addItem
void addItem(TreeItem item)
Adds an tree item.- Parameters:
item- the item to be added
-
addItem
void addItem(IsTreeItem isItem)
Adds an item wrapped by specifiedIsTreeItem.- Parameters:
isItem- the wrapper of item to be added
-
addItem
TreeItem addItem(Widget widget)
Adds a new tree item containing the specified widget.- Parameters:
widget- the widget to be added- Returns:
- the new item
-
addTextItem
TreeItem addTextItem(java.lang.String itemText)
Adds a simple tree item containing the specified text.- Parameters:
itemText- the text of the item to be added- Returns:
- the item that was added
-
removeItem
void removeItem(TreeItem item)
Removes an item.- Parameters:
item- the item to be removed
-
removeItem
void removeItem(IsTreeItem isItem)
Removes an item.- Parameters:
isItem- the wrapper of item to be removed
-
removeItems
void removeItems()
Removes all items.
-
-