public interface

HasTreeItems

com.google.gwt.user.client.ui.HasTreeItems
Known Indirect Subclasses

Class Overview

A widget that implements this interface contains items and can operate them.

Summary

Public Methods
abstract void addItem(TreeItem item)
Adds an tree item.
abstract void addItem(IsTreeItem isItem)
Adds an item wrapped by specified IsTreeItem.
abstract TreeItem addItem(Widget widget)
Adds a new tree item containing the specified widget.
abstract TreeItem addItem(SafeHtml itemHtml)
Adds a simple tree item containing the specified html.
abstract TreeItem addTextItem(String itemText)
Adds a simple tree item containing the specified text.
abstract void removeItem(IsTreeItem isItem)
Removes an item.
abstract void removeItem(TreeItem item)
Removes an item.
abstract void removeItems()
Removes all items.

Public Methods

public abstract void addItem (TreeItem item)

Adds an tree item.

Parameters
item the item to be added

public abstract void addItem (IsTreeItem isItem)

Adds an item wrapped by specified IsTreeItem.

Parameters
isItem the wrapper of item to be added

public abstract TreeItem addItem (Widget widget)

Adds a new tree item containing the specified widget.

Parameters
widget the widget to be added
Returns
  • the new item

public abstract 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

public abstract TreeItem addTextItem (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

public abstract void removeItem (IsTreeItem isItem)

Removes an item.

Parameters
isItem the wrapper of item to be removed

public abstract void removeItem (TreeItem item)

Removes an item.

Parameters
item the item to be removed

public abstract void removeItems ()

Removes all items.