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
Modifier and TypeInterfaceDescriptionstatic interface
Extends this interface with convenience methods to handleIsWidget
. -
Method Summary
Modifier and TypeMethodDescriptionAdds a simple tree item containing the specified html.void
addItem
(IsTreeItem isItem) Adds an item wrapped by specifiedIsTreeItem
.void
Adds an tree item.Adds a new tree item containing the specified widget.addTextItem
(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
Removes 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.