A standard hierarchical tree widget. The tree contains a hierarchy of
com.google.gwt.user.client.ui.TreeItem TreeItems that the user can
open, close, and select.
CSS Style Rules
.gwt-Tree { the tree itself }
.gwt-Tree .gwt-TreeItem { a tree item }
.gwt-Tree .gwt-TreeItem-selected { a selected tree item }
Indicates if keyboard navigation is enabled for the Tree and for a given
TreeItem. Subclasses of Tree can override this function to selectively
enable or disable keyboard navigation.
Parameters: currentItem - the currently selected TreeItem true if the Tree will response to arrow keys bychanging the currently selected item
Sets the base URL under which this tree will find its default images. These
images must be named "tree_white.gif", "tree_open.gif", and
"tree_closed.gif".
Parameters: baseUrl - Tree.Tree(TreeImages)
Selects a specified item.
Parameters: item - the item to be selected, or null to deselect allitems
setSelectedItem
public void setSelectedItem(TreeItem item, boolean fireEvents)(Code)
Selects a specified item.
Parameters: item - the item to be selected, or null to deselect allitems Parameters: fireEvents - true to allow selection events to be fired