org.cafesip.gwtcomp.client.ui
Interface SuperTreeListener


public interface SuperTreeListener

This interface must be implemented by applications to register a super tree listener object. See the SuperTree class for details.


Method Summary
 void onCollapse(com.google.gwt.user.client.ui.TreeItem item)
          This method is invoked when a tree item is collapsed.
 void onExpand(com.google.gwt.user.client.ui.TreeItem item)
          This method is invoked when a tree item is expanded.
 void onPopup(java.lang.String level, PopupMenu menu, com.google.gwt.user.client.ui.TreeItem[] treeItems)
          This method is invoked just before a popup menu is popped up.
 void onSelect(java.lang.String level, com.google.gwt.user.client.ui.TreeItem[] treeItems)
          Invoked when one or more tree items are selected.
 

Method Detail

onPopup

void onPopup(java.lang.String level,
             PopupMenu menu,
             com.google.gwt.user.client.ui.TreeItem[] treeItems)
This method is invoked just before a popup menu is popped up. The application can hide menu items, add new menu items, etc. by implementing this method.

Parameters:
level - the selected level.
menu - the menu that will be popped up.
treeItems - selected tree items.

onSelect

void onSelect(java.lang.String level,
              com.google.gwt.user.client.ui.TreeItem[] treeItems)
Invoked when one or more tree items are selected. Note that this method is only invoked, when there is no popup menu associated with the element and there is no popup menu associated with the level.

Parameters:
level - level of the item
treeItems - selected tree items

onExpand

void onExpand(com.google.gwt.user.client.ui.TreeItem item)
This method is invoked when a tree item is expanded.

Parameters:
item - the tree item.

onCollapse

void onCollapse(com.google.gwt.user.client.ui.TreeItem item)
This method is invoked when a tree item is collapsed.

Parameters:
item - the tree item.


http://www.cafesip.org