All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.TreePanel
java.lang.Object
|
+----dtai.gwt.Gadget
|
+----dtai.gwt.ContainerGadget
|
+----dtai.gwt.PanelGadget
|
+----dtai.gwt.BorderGadget
|
+----dtai.gwt.TreePanel
- public class TreePanel
- extends BorderGadget
- implements TreeSelectable, MouseListener
The TreePanel class actually maintains the
TreeViewGadget menu choices.
-
CONTROL_WIDTH
-
-
INDENT
-
-
TreePanel()
- Constructor initializes the TreeViewGadget.
-
addActionListener(ActionListener)
- Adds the specified listener to be notified when component
events occur on this component.
-
addTreeListener(TreeListener)
- Adds the specified listener to be notified when component
events occur on this component.
-
childrenCanOverlap()
- returns true if children can overlap each other.
-
clear(GadgetGraphics)
- clear
-
doLayout()
- doLayout
-
drawLineFromParent(GadgetGraphics, TreeNode, int, int)
- drawLineFromParent
-
fontChanged()
- fontChanged
-
getIgnoreDefaultAction()
- getIgnoreDefaultAction
-
getNumDisplayed()
- getNumDisplayed
-
getNumVisible()
- getNumVisible
-
getPreferredSize()
- getPreferredSize
-
getRoot()
- returns the root item in the tree
-
getSelectedTreeItem()
- getSelectedTreeItem
-
getTopIndex()
- getTopIndex
-
invalidate(boolean)
- invalidate
-
invokeAction(AWTEvent)
- invokeAction
-
invokeExpansion(TreeNode)
- invokeExpansion
-
isExpandingOnAction()
- isExpandingOnAction
-
isFocusTraversable()
- isFocusTraversable
-
keyReleased(KeyEvent)
- keyReleased - Empty method
-
keyTyped(KeyEvent)
- keyTyoed - Empty method
-
mouseClicked(MouseEvent)
- mouseClicked- Empty method
mouseClicked
-
mouseEntered(MouseEvent)
- mouseEntered - Empty method
-
mouseExited(MouseEvent)
- mouseExited - Empty method
-
mousePressed(MouseEvent)
- Handles mouse pressed events.
-
mouseReleased(MouseEvent)
- Handles mouse released events.
-
paintLines(GadgetGraphics)
- paintLines
-
processActionEvent(ActionEvent)
-
-
processEvent(AWTEvent)
- processEvent
-
processFocusEvent(FocusEvent)
- processFocusEvent
-
processKeyEvent(KeyEvent)
- processKeyEvent
-
processTreeEvent(TreeEvent)
-
-
removeActionListener(ActionListener)
- Removes the specified listener so it no longer receives
action events on this action.
-
removeTreeListener(TreeListener)
- Removes the specified listener so it no longer receives
tree events on this tree.
-
requiresVertScrollbar()
- requiresVertScrollbar
-
select(TreeItem)
- select
-
select(TreeItem, AWTEvent)
- select
-
selectionChanged(AWTEvent)
- selectionChanged
-
setExpandingOnAction(boolean)
- setExpandingOnAction
-
setIgnoreDefaultAction(boolean)
- setIgnoreDefaultAction
-
setRoot(TreeItem)
- setRoot
-
setTopIndex(int)
- setTopIndex
INDENT
protected static final int INDENT
CONTROL_WIDTH
protected static final int CONTROL_WIDTH
TreePanel
public TreePanel()
- Constructor initializes the TreeViewGadget.
childrenCanOverlap
public boolean childrenCanOverlap()
- returns true if children can overlap each other.
- Returns:
- false
- Overrides:
- childrenCanOverlap in class ContainerGadget
setRoot
public void setRoot(TreeItem root)
- setRoot
- Parameters:
- root - - TBD
getRoot
public TreeItem getRoot()
- returns the root item in the tree
- Returns:
- root
isFocusTraversable
public boolean isFocusTraversable()
- isFocusTraversable
- Returns:
- boolean
- Overrides:
- isFocusTraversable in class Gadget
getIgnoreDefaultAction
public boolean getIgnoreDefaultAction()
- getIgnoreDefaultAction
- Returns:
- boolean
setIgnoreDefaultAction
public void setIgnoreDefaultAction(boolean ignoreDefaultAction)
- setIgnoreDefaultAction
- Parameters:
- ignoreDefaultAction - - TBD
isExpandingOnAction
public boolean isExpandingOnAction()
- isExpandingOnAction
- Returns:
- boolean
setExpandingOnAction
public void setExpandingOnAction(boolean expandingOnAction)
- setExpandingOnAction
- Parameters:
- expandingOnAction - - TBD
getNumVisible
public int getNumVisible()
- getNumVisible
- Returns:
- int
getNumDisplayed
public int getNumDisplayed()
- getNumDisplayed
- Returns:
- int
getTopIndex
public int getTopIndex()
- getTopIndex
- Returns:
- int
setTopIndex
public void setTopIndex(int topIndex)
- setTopIndex
- Parameters:
- topIndex - - TBD
fontChanged
protected void fontChanged()
- fontChanged
- Overrides:
- fontChanged in class ContainerGadget
invalidate
public void invalidate(boolean b)
- invalidate
- Overrides:
- invalidate in class Gadget
doLayout
public void doLayout()
- doLayout
- Overrides:
- doLayout in class ContainerGadget
getPreferredSize
public Dimension getPreferredSize()
- getPreferredSize
- Returns:
- Dimension
- Overrides:
- getPreferredSize in class ContainerGadget
requiresVertScrollbar
protected boolean requiresVertScrollbar()
- requiresVertScrollbar
- Returns:
- boolean
- Overrides:
- requiresVertScrollbar in class Gadget
drawLineFromParent
public void drawLineFromParent(GadgetGraphics g,
TreeNode parent,
int lineX,
int toY)
- drawLineFromParent
- Parameters:
- g - - TBD
- parent - - TBD
- lineX - - TBD
- toY - - TBD
paintLines
public void paintLines(GadgetGraphics g)
- paintLines
- Parameters:
- g - - TBD
clear
public void clear(GadgetGraphics g)
- clear
- Parameters:
- g - - TBD
- Overrides:
- clear in class Gadget
getSelectedTreeItem
public TreeItem getSelectedTreeItem()
- getSelectedTreeItem
- Returns:
- TreeItem
select
public void select(TreeItem item)
- select
- Parameters:
- item - - TBD
select
public void select(TreeItem item,
AWTEvent e)
- select
- Parameters:
- item - - TBD
- e - - TBD
selectionChanged
public void selectionChanged(AWTEvent event)
- selectionChanged
- Parameters:
- event - - TBD
addActionListener
public synchronized void addActionListener(ActionListener l)
- Adds the specified listener to be notified when component
events occur on this component.
- Parameters:
- l - the listener to receive the events
removeActionListener
public synchronized void removeActionListener(ActionListener l)
- Removes the specified listener so it no longer receives
action events on this action.
- Parameters:
- l - the listener to remove
addTreeListener
public synchronized void addTreeListener(TreeListener l)
- Adds the specified listener to be notified when component
events occur on this component.
- Parameters:
- l - the listener to receive the events
removeTreeListener
public synchronized void removeTreeListener(TreeListener l)
- Removes the specified listener so it no longer receives
tree events on this tree.
- Parameters:
- l - the listener to remove
processEvent
protected void processEvent(AWTEvent e)
- processEvent
- Parameters:
- e - a TreeEvent
- Returns:
- boolean result
- Overrides:
- processEvent in class ContainerGadget
processTreeEvent
protected void processTreeEvent(TreeEvent e)
processActionEvent
protected void processActionEvent(ActionEvent e)
invokeAction
public void invokeAction(AWTEvent e)
- invokeAction
- Parameters:
- e - - TBD
invokeExpansion
public void invokeExpansion(TreeNode node)
- invokeExpansion
- Parameters:
- the - node that was expanded or condensed
mouseClicked
public void mouseClicked(MouseEvent e)
- mouseClicked- Empty method
mouseClicked
- Parameters:
- e - - TBD
mousePressed
public void mousePressed(MouseEvent e)
- Handles mouse pressed events.
- Parameters:
- e - - a MouseEvent (pressed)
mouseReleased
public void mouseReleased(MouseEvent e)
- Handles mouse released events.
- Parameters:
- e - - a MouseEvent (released)
keyTyped
public void keyTyped(KeyEvent e)
- keyTyoed - Empty method
- Parameters:
- e - - TBD
keyReleased
public void keyReleased(KeyEvent e)
- keyReleased - Empty method
- Parameters:
- e - - TBD
processKeyEvent
protected void processKeyEvent(KeyEvent e)
- processKeyEvent
- Parameters:
- e - the KeyEvent
- Overrides:
- processKeyEvent in class Gadget
mouseEntered
public void mouseEntered(MouseEvent e)
- mouseEntered - Empty method
- Parameters:
- e - - TBD
mouseExited
public void mouseExited(MouseEvent e)
- mouseExited - Empty method
- Parameters:
- e - - TBD
processFocusEvent
protected void processFocusEvent(FocusEvent e)
- processFocusEvent
- Parameters:
- e - the firing FocusEvent
- Overrides:
- processFocusEvent in class Gadget
All Packages Class Hierarchy This Package Previous Next Index