netcom.gui
Class Tree

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bynetcom.gui.Tree
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.AdjustmentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class Tree
extends java.awt.Panel
implements java.awt.event.MouseListener, java.awt.event.AdjustmentListener

Title: Tree

Description: Implementation of a Tree in AWT

Copyright: Copyright (c) 2002

Company: NETCOM

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 java.util.Vector grayHighlight
           
static int GRAYHIGHLIGHT
           
static int MAX_BITMASK_SUM
           
static int NOCHILDREN
           
static int OPENED
           
 int OVER_ERROR
           
static int SHOWN
           
 java.util.Hashtable tree_folder_status
           
 java.util.Vector vData
           
 
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
Tree()
           
Tree(int a)
           
 
Method Summary
 void addFolderBitmaskFlag(java.lang.String s, int i)
           
 void addRow(java.lang.String[] args)
           
 void addRow(java.lang.String key, java.lang.String value)
           
 void addRow(java.lang.String key, java.lang.String value, java.lang.String state, int color)
           
 void addRow(java.lang.String key, java.lang.String value, java.lang.String state, int color, java.lang.String shortcut, java.lang.String strimage, java.lang.String restype)
           
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent p1)
           
 void deleteFolderBitmask(java.lang.String s)
           
 int getFolderBitmask(java.lang.String s)
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getPreferredSize()
           
 java.lang.String getSelectedName()
           
 java.lang.String getSelectedPath()
           
 java.lang.String getSelectedShortcut()
           
 java.lang.String getSelectedType()
           
 int getSessionID()
           
 int getVertScrollValue()
           
 boolean isClosable()
           
 boolean isForBrowse()
           
 java.awt.Dimension minimumSize()
           
 void mouseClicked(java.awt.event.MouseEvent p1)
           
 void mouseEntered(java.awt.event.MouseEvent p1)
           
 void mouseExited(java.awt.event.MouseEvent p1)
           
 void mousePressed(java.awt.event.MouseEvent p1)
           
 void mouseReleased(java.awt.event.MouseEvent p1)
           
 void paint(java.awt.Graphics g)
           
 java.awt.Dimension preferredSize()
           
 void removeAll()
           
 void removeFolderBitmaskFlag(java.lang.String s, int i)
           
 void reshape(int x, int y, int w, int h)
           
 void setClosable(boolean s)
           
 void setFolderBitmask(java.lang.String s, int i)
           
 void setForBrowse(boolean s)
           
 void setMaxIndent(int i)
           
 void setMinimumSize(java.awt.Dimension d)
           
 void setSelected(java.lang.String s)
           
 void setVertScrollValue(int n)
           
 void update()
           
 
Methods inherited from class java.awt.Panel
addNotify, 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, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, isFocusTraversable, 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, 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

OPENED

public static final int OPENED
See Also:
Constant Field Values

SHOWN

public static final int SHOWN
See Also:
Constant Field Values

NOCHILDREN

public static final int NOCHILDREN
See Also:
Constant Field Values

GRAYHIGHLIGHT

public static final int GRAYHIGHLIGHT
See Also:
Constant Field Values

MAX_BITMASK_SUM

public static final int MAX_BITMASK_SUM
See Also:
Constant Field Values

OVER_ERROR

public final int OVER_ERROR
See Also:
Constant Field Values

vData

public java.util.Vector vData

grayHighlight

public java.util.Vector grayHighlight

tree_folder_status

public java.util.Hashtable tree_folder_status
Constructor Detail

Tree

public Tree()

Tree

public Tree(int a)
Method Detail

setSelected

public void setSelected(java.lang.String s)

isForBrowse

public boolean isForBrowse()

setForBrowse

public void setForBrowse(boolean s)

isClosable

public boolean isClosable()

setClosable

public void setClosable(boolean s)

getSessionID

public int getSessionID()

getFolderBitmask

public int getFolderBitmask(java.lang.String s)

setFolderBitmask

public void setFolderBitmask(java.lang.String s,
                             int i)

removeFolderBitmaskFlag

public void removeFolderBitmaskFlag(java.lang.String s,
                                    int i)

addFolderBitmaskFlag

public void addFolderBitmaskFlag(java.lang.String s,
                                 int i)

deleteFolderBitmask

public void deleteFolderBitmask(java.lang.String s)

getSelectedPath

public java.lang.String getSelectedPath()

getSelectedName

public java.lang.String getSelectedName()

getSelectedType

public java.lang.String getSelectedType()

getVertScrollValue

public int getVertScrollValue()

setVertScrollValue

public void setVertScrollValue(int n)

getSelectedShortcut

public java.lang.String getSelectedShortcut()

setMinimumSize

public void setMinimumSize(java.awt.Dimension d)

reshape

public void reshape(int x,
                    int y,
                    int w,
                    int h)

removeAll

public void removeAll()

addRow

public void addRow(java.lang.String key,
                   java.lang.String value,
                   java.lang.String state,
                   int color,
                   java.lang.String shortcut,
                   java.lang.String strimage,
                   java.lang.String restype)

setMaxIndent

public void setMaxIndent(int i)

addRow

public void addRow(java.lang.String[] args)
            throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

addRow

public void addRow(java.lang.String key,
                   java.lang.String value,
                   java.lang.String state,
                   int color)

addRow

public void addRow(java.lang.String key,
                   java.lang.String value)

update

public void update()

paint

public void paint(java.awt.Graphics g)

preferredSize

public java.awt.Dimension preferredSize()

getPreferredSize

public java.awt.Dimension getPreferredSize()

getMinimumSize

public java.awt.Dimension getMinimumSize()

minimumSize

public java.awt.Dimension minimumSize()

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent p1)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent p1)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent p1)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent p1)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent p1)
Specified by:
mouseExited in interface java.awt.event.MouseListener

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent p1)
Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener