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