Class marimba.gui.TreeWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.TreeWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ContainerWidget
                   |
                   +----marimba.gui.ScrollingContainerWidget
                           |
                           +----marimba.gui.TreeWidget

public class TreeWidget
extends ScrollingContainerWidget
implements WidgetLayoutMgr
A widget for displaying a hierarchical list.
Version:
1.22, 12/10/96
Author:
Arthur van Hoff

Variable Index

 o font1
 o font2
 o showRoot
The root can be shown or hidden by the tree.

Constructor Index

 o TreeWidget()
Constructor.

Method Index

 o add(TreeNodeWidget)
Add a tree node.
 o clear()
Make the tree empty again: remove all nodes.
 o collapseAll()
Collapse all.
 o collapseAll(boolean)
Collapse all
 o expandAll()
Collapse all.
 o focus(TreeNodeWidget)
Focus on a TreeNodeWidget.
 o focusInterest()
A tree is interested in the focus if no node is selected yet.
 o getAllNodes()
Return a vector of all nodes, in linear order.
 o getNodes()
Return a vector of nodes that are visible, in linear order.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getRoot()
Get the rood node of this tree.
 o getSelected()
Get the selected Tree node.
 o getShowRoot()
Check whether the tree shows the root.
 o handleEvent(Event)
Handle the GOT_FOCUS event.
 o layout(Widget)
Layout the content
 o newContent()
Allocate the content.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setShowRoot(boolean)
Show or hide the root.

Variables

 o font1
  public final static Font font1
 o font2
  public final static Font font2
 o showRoot
  public boolean showRoot
The root can be shown or hidden by the tree.
See Also:
getShowRoot, setShowRoot

Constructors

 o TreeWidget
  public TreeWidget()
Constructor.

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ScrollingContainerWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ScrollingContainerWidget
 o getShowRoot
  public boolean getShowRoot()
Check whether the tree shows the root.
See Also:
showRoot
 o setShowRoot
  public void setShowRoot(boolean showRoot)
Show or hide the root.
See Also:
showRoot
 o newContent
  public Widget newContent()
Allocate the content.
Overrides:
newContent in class ScrollingContainerWidget
 o layout
  public void layout(Widget w)
Layout the content
 o expandAll
  public void expandAll()
Collapse all.
 o collapseAll
  public void collapseAll()
Collapse all.
 o collapseAll
  public void collapseAll(boolean collapsed)
Collapse all
 o getRoot
  public TreeNodeWidget getRoot()
Get the rood node of this tree. Returns null if none is found.
 o getSelected
  public TreeNodeWidget getSelected()
Get the selected Tree node.
 o focus
  public void focus(TreeNodeWidget node)
Focus on a TreeNodeWidget.
 o getNodes
  public Vector getNodes()
Return a vector of nodes that are visible, in linear order.
 o getAllNodes
  public Vector getAllNodes()
Return a vector of all nodes, in linear order.
 o add
  public void add(TreeNodeWidget node)
Add a tree node.
 o clear
  public void clear()
Make the tree empty again: remove all nodes.
 o handleEvent
  public boolean handleEvent(Event evt)
Handle the GOT_FOCUS event.
Overrides:
handleEvent in class ScrollingContainerWidget
 o focusInterest
  public boolean focusInterest()
A tree is interested in the focus if no node is selected yet.
Overrides:
focusInterest in class Widget
See Also:
hadFocus

All Packages  Class Hierarchy  This Package  Previous  Next  Index