wt.clients.beans.explorer
Class WTTree

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bysymantec.itools.awt.TreeView
                  extended bywt.clients.beans.explorer.WTTree
All Implemented Interfaces:
Accessible, ImageObserver, ItemSelectable, MenuContainer, Serializable

public class WTTree
extends symantec.itools.awt.TreeView

WTTree is a Tree View for the Explorer Browser.

Supported API: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
(package private)  class WTTree.SymMouse
           
 
Nested classes inherited from class symantec.itools.awt.TreeView
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
private  WTNode myRoot
           
 
Fields inherited from class symantec.itools.awt.TreeView
actionListener, adjustment, CHILD, count, e, errors, fm, focus, g1, horizontalScrollBar, im1, isSun1_1, itemListener, key, LAST, mouse, needResetVector, newWidth, NEXT, NODE_COLLAPSED, NODE_EXPANDED, NODE_TOGGLED, redrawTriggered, rootNode, sbHLineIncrement, sbHShow, sbHSize, sbVShow, SEL_CHANGED, selectedNode, topVisibleNode, v, verticalScrollBar, viewCount, viewHeight, viewWidest, viewWidth
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WTTree()
          Constructs a TreeView with a single root node.
WTTree(Explorable root_node)
          Constructor for a WTTree which takes in an Explorable object to be used as the root node for this tree.
 
Method Summary
 WTNode addNode(WTNode aParent, Explorable aChild)
          Adds the specified object to the specified parent node.
 WTNode addNode(WTNode aParent, Explorable aChild, boolean redraw)
          Adds the specified object to the specified parent node.
 WTNode addNode(WTNode aParent, WTNode aChild)
          Adds the specified child node to the specified parent node
 WTNode addNode(WTNode aParent, WTNode aChild, boolean redraw)
          Adds the specified child node to the specified parent node
 WTNode findNode(Explorable obj)
          Find the node containing the Explorable.
 WTNode[] findNodes(Explorable obj)
          Find the nodes containing the Explorable.
 WTNode getExpanded()
          Return the last expanded node
 WTNode getRoot()
          Return the root node.
 WTNode getSelected()
          Return the last selected node
 WTNode removeNode(WTNode aNode)
          Removes the given node from the TreeView.
 void setSelectedNode(WTNode node)
           
(package private)  void WTTree_mouseExited(MouseEvent event)
           
 
Methods inherited from class symantec.itools.awt.TreeView
addActionListener, addChild, addItemListener, addNotify, addSibling, addSibling, append, changeSelection, clear, compWidth, debugVector, drawDotLine, drawNodeText, drawNodeToggle, drawTree, exists, exists, findLastPreSpace, getBgHilite, getCount, getFgHilite, getMinimumSize, getPreferredSize, getRootNode, getSelectedNode, getSelectedObjects, getSelectedText, getTreeStructure, getViewCount, handleAdjustmentEvent, handleFocusGained, handleFocusLost, handleKeyPressed, handleMousePressed, handleMouseReleased, insert, isFocusTraversable, minimumSize, newTreeNode, paint, parseTreeStructure, preferredSize, printTree, printTree, recount, redraw, redraw, remove, remove, removeActionListener, removeItemListener, removeNotify, removeSelected, repaint, resetVector, sendActionEvent, setLayout, setSelectedNode, setTreeStructure, traverse, triggerRedraw, update, vectorize
 
Methods inherited from class java.awt.Panel
getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, paintComponents, paramString, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myRoot

private WTNode myRoot
Constructor Detail

WTTree

public WTTree()
Constructs a TreeView with a single root node.


WTTree

public WTTree(Explorable root_node)
Constructor for a WTTree which takes in an Explorable object to be used as the root node for this tree.

Parameters:
root_node - the Explorable to be used as the root node of the tree.
Method Detail

setSelectedNode

public void setSelectedNode(WTNode node)

getRoot

public WTNode getRoot()
Return the root node.

Returns:
the root node for this tree

addNode

public WTNode addNode(WTNode aParent,
                      WTNode aChild,
                      boolean redraw)
Adds the specified child node to the specified parent node

Parameters:
aChild - the node to add as a child
aParent - the node to add the child to.
redraw - if true, use method which redraws after adding node
Returns:
the added child

addNode

public WTNode addNode(WTNode aParent,
                      WTNode aChild)
Adds the specified child node to the specified parent node

Parameters:
aChild - the node to add as a child
aParent - the node to add the child to.
Returns:
the added child

addNode

public WTNode addNode(WTNode aParent,
                      Explorable aChild,
                      boolean redraw)
Adds the specified object to the specified parent node. The child object will be used to construct a new node which is added to the specified parent.

Parameters:
aChild - the object to add as a child
aParent - the node to add the child to.
Returns:
the added child node

addNode

public WTNode addNode(WTNode aParent,
                      Explorable aChild)
Adds the specified object to the specified parent node. The child object will be used to construct a new node which is added to the specified parent.

Parameters:
aChild - the object to add as a child
aParent - the node to add the child to.
Returns:
the added child node

removeNode

public WTNode removeNode(WTNode aNode)
Removes the given node from the TreeView.

Parameters:
aNode - the node to remove
Returns:
the TreeNode removed from this TreeView or null if not found

getExpanded

public WTNode getExpanded()
Return the last expanded node

Returns:
the expanded node

getSelected

public WTNode getSelected()
Return the last selected node

Returns:
the expanded node

findNodes

public WTNode[] findNodes(Explorable obj)
Find the nodes containing the Explorable. The method will use the getUniqueIdentity() method on the business object as the basis for comparison. If no matching node is found, an empty array is returned.

Parameters:
obj - the object to find
See Also:
WTNode, Explorable

findNode

public WTNode findNode(Explorable obj)
Find the node containing the Explorable. The method will use the getUniqueIdentity() method on the business object as the basis for comparison. If no matching node is found, a null is returned.

Parameters:
obj - the object to find
See Also:
WTNode, Explorable

WTTree_mouseExited

void WTTree_mouseExited(MouseEvent event)