All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.TreeViewGadget

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.BorderGadget
                                   |
                                   +----dtai.gwt.ScrollPaneGadget
                                           |
                                           +----dtai.gwt.TreeViewGadget

public class TreeViewGadget
extends ScrollPaneGadget
implements TreeSelectable
The TreeViewGadget class holds as a component the TreeViewGadget menu.


Variable Index

 o treePanel

Constructor Index

 o TreeViewGadget()
Constructor creates an explorer menu gadget for user interaction.
 o TreeViewGadget(TreeNode)
TreeViewGadget

Method Index

 o addActionListener(ActionListener)
Adds the specified action listener to receive action events from this list.
 o addTreeListener(TreeListener)
Adds the specified tree item listener to recieve tree item events from this list.
 o adjustmentValueChanged(AdjustmentEvent)
adjustmentValueChanged
 o doLayout()
doLayout
 o getIgnoreDefaultAction()
getIgnoreDefaultAction
 o getNumVisible()
getNumVisible
 o getRoot()
returns the root item in the tree
 o getSelectedTreeItem()
getSelectedTreeItem
 o getTopIndex()
getTopIndex
 o removeActionListener(ActionListener)
Removes the specified action listener so it no longer receives action events from this list.
 o removeTreeListener(TreeListener)
Removes the specified tree item listener so it no longer receives tree item events from this list.
 o select(TreeItem)
select
 o setIgnoreDefaultAction(boolean)
setIgnoreDefaultAction
 o setRoot(TreeNode)
setRoot

Variables

 o treePanel
 public TreePanel treePanel

Constructors

 o TreeViewGadget
 public TreeViewGadget()
Constructor creates an explorer menu gadget for user interaction.

Parameters:
warehouse - the warehouse at the root of the overlay tree
path - path to the warehouse-will be converted to a url
 o TreeViewGadget
 public TreeViewGadget(TreeNode root)
TreeViewGadget

Parameters:
roo - - TBD

Methods

 o setRoot
 public void setRoot(TreeNode root)
setRoot

Parameters:
root - - TBD
 o getRoot
 public TreeItem getRoot()
returns the root item in the tree

Returns:
root
 o doLayout
 public void doLayout()
doLayout

Overrides:
doLayout in class ScrollPaneGadget
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged

Parameters:
e - - TBD
Overrides:
adjustmentValueChanged in class ScrollPaneGadget
 o getNumVisible
 public int getNumVisible()
getNumVisible

Returns:
int
 o getTopIndex
 public int getTopIndex()
getTopIndex

Returns:
int
 o getIgnoreDefaultAction
 public boolean getIgnoreDefaultAction()
getIgnoreDefaultAction

Returns:
boolean
 o setIgnoreDefaultAction
 public void setIgnoreDefaultAction(boolean ignoreDefaultAction)
setIgnoreDefaultAction

Parameters:
ignoreDefaultAction - - TBD
 o getSelectedTreeItem
 public TreeItem getSelectedTreeItem()
getSelectedTreeItem

Returns:
TreeItem
 o select
 public void select(TreeItem item)
select

Parameters:
item - - TBD
 o addActionListener
 public void addActionListener(ActionListener l)
Adds the specified action listener to receive action events from this list. Action events occur when a list item is double-clicked.

Parameters:
l - - the action listener
 o removeActionListener
 public void removeActionListener(ActionListener l)
Removes the specified action listener so it no longer receives action events from this list.

Parameters:
l - - the action listener
 o addTreeListener
 public void addTreeListener(TreeListener l)
Adds the specified tree item listener to recieve tree item events from this list.

Parameters:
l - - the tree item listener
 o removeTreeListener
 public void removeTreeListener(TreeListener l)
Removes the specified tree item listener so it no longer receives tree item events from this list.

Parameters:
l - - the tree item listener

All Packages  Class Hierarchy  This Package  Previous  Next  Index