Package com.google.gwt.user.client.ui
Interface HasTreeItems
- All Known Subinterfaces:
HasTreeItems.ForIsWidget
public interface HasTreeItems
A widget that implements this interface contains
items and can operate them.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceExtends this interface with convenience methods to handleIsWidget. -
Method Summary
Modifier and TypeMethodDescriptionAdds a simple tree item containing the specified html.voidaddItem(IsTreeItem isItem) Adds an item wrapped by specifiedIsTreeItem.voidAdds an tree item.Adds a new tree item containing the specified widget.addTextItem(String itemText) Adds a simple tree item containing the specified text.voidremoveItem(IsTreeItem isItem) Removes an item.voidremoveItem(TreeItem item) Removes an item.voidRemoves all items.
-
Method Details
-
addItem
Adds an tree item.- Parameters:
item- the item to be added
-
addItem
Adds an item wrapped by specifiedIsTreeItem.- Parameters:
isItem- the wrapper of item to be added
-
addItem
Adds a new tree item containing the specified widget.- Parameters:
widget- the widget to be added- Returns:
- the new item
-
addTextItem
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
Removes an item.- Parameters:
item- the item to be removed
-
removeItem
Removes an item.- Parameters:
isItem- the wrapper of item to be removed
-
removeItems
void removeItems()Removes all items.