netcom.gui
Class Grid

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

public class Grid
extends java.awt.Panel
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.AdjustmentListener, java.awt.event.KeyListener

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
 int[] iColWidth
           
 
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
Grid()
           
Grid(boolean a, boolean b)
           
Grid(int i, boolean a, boolean b)
           
 
Method Summary
 void addRow(java.lang.String[] data)
           
 void addScrollListener(java.awt.event.AdjustmentListener a)
           
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent p1)
           
 void calculateColumnWidth(int width)
           
 int getColumnNumber(java.lang.String col)
           
 java.lang.String getDisplay(int x, int y)
           
 java.lang.String getPath()
           
 int getRowHeight()
           
 java.lang.String getSelected()
           
 java.util.Enumeration getSelectedIndexes()
           
 java.lang.String getSelectedName()
           
 java.util.Vector getSelectedNames()
           
 java.lang.String getSelectedPath()
           
 java.lang.String getSelectedType()
           
 int getSessionID()
           
 boolean getShowGrid()
           
 int getSortId()
           
 java.lang.String getTag()
           
 int getVisibleAmount()
           
 boolean isClosable()
           
 boolean isSelectable()
           
 boolean isWrappable()
           
 void keyPressed(java.awt.event.KeyEvent p1)
           
 void keyReleased(java.awt.event.KeyEvent p1)
           
 void keyTyped(java.awt.event.KeyEvent p1)
           
 void mouseClicked(java.awt.event.MouseEvent p1)
           
 void mouseDragged(java.awt.event.MouseEvent p1)
           
 void mouseEntered(java.awt.event.MouseEvent p1)
           
 void mouseExited(java.awt.event.MouseEvent p1)
           
 void mouseMoved(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)
           
 void removeAll()
           
 void resetScroll()
           
 void resetSelection()
           
 void reshape(int x, int y, int w, int h)
           
 void setBounds(int x, int y, int w, int h)
           
 void setClosable(boolean s)
           
 void setHead(java.lang.String[] head)
           
 void setMinimumSize(java.awt.Dimension d)
           
 void setPath(java.lang.String t)
           
 void setSelectable(boolean s)
           
 void setSessionID(int i)
           
 void setShowGrid(boolean b)
           
 void setTag(java.lang.String t)
           
 void setToEnd(boolean b)
           
 void setWrappable(boolean s)
           
 void update()
           
 void update(java.awt.Graphics g)
           
 
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, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, 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, 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, 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

iColWidth

public int[] iColWidth
Constructor Detail

Grid

public Grid()

Grid

public Grid(boolean a,
            boolean b)

Grid

public Grid(int i,
            boolean a,
            boolean b)
Method Detail

getRowHeight

public int getRowHeight()

getSortId

public int getSortId()

getSelectedIndexes

public java.util.Enumeration getSelectedIndexes()

getColumnNumber

public int getColumnNumber(java.lang.String col)

getSelected

public java.lang.String getSelected()

setToEnd

public void setToEnd(boolean b)

getSelectedPath

public java.lang.String getSelectedPath()

getSelectedType

public java.lang.String getSelectedType()

getSelectedName

public java.lang.String getSelectedName()

getSelectedNames

public java.util.Vector getSelectedNames()

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String t)

getTag

public java.lang.String getTag()

setTag

public void setTag(java.lang.String t)

isWrappable

public boolean isWrappable()

setWrappable

public void setWrappable(boolean s)

isSelectable

public boolean isSelectable()

setSelectable

public void setSelectable(boolean s)

isClosable

public boolean isClosable()

setClosable

public void setClosable(boolean s)

getShowGrid

public boolean getShowGrid()

setShowGrid

public void setShowGrid(boolean b)

addScrollListener

public void addScrollListener(java.awt.event.AdjustmentListener a)

getSessionID

public int getSessionID()

setSessionID

public void setSessionID(int i)

removeAll

public void removeAll()

setMinimumSize

public void setMinimumSize(java.awt.Dimension d)

reshape

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

setBounds

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

resetSelection

public void resetSelection()

resetScroll

public void resetScroll()

setHead

public void setHead(java.lang.String[] head)

addRow

public void addRow(java.lang.String[] data)

update

public void update()

calculateColumnWidth

public void calculateColumnWidth(int width)

paint

public void paint(java.awt.Graphics g)

update

public void update(java.awt.Graphics g)

getDisplay

public java.lang.String getDisplay(int x,
                                   int y)

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

getVisibleAmount

public int getVisibleAmount()

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

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent p1)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent p1)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

adjustmentValueChanged

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

keyReleased

public void keyReleased(java.awt.event.KeyEvent p1)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent p1)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent p1)
Specified by:
keyTyped in interface java.awt.event.KeyListener