Goovi
Class AmosOutliner

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--Goovi.AmosOutliner
Direct Known Subclasses:
SpecializedOutliner

public class AmosOutliner
extends javax.swing.JPanel

Class for displaying a tree or table structure of AmosNodes most often representing a database scan. Each AmosOutliner remembers which typebrowser window it was started from, especially important when executing Amos II Functions. (The AmosInterface instance is needed). If the scan displayed in the outliner is streamed. This is remembered with a boolean attribute and the scan is saved with a scan attribute.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
AmosOutliner(TypeBrowser tb)
          Creates an unstreamed AmosOutliner object from a typebrowser object.
AmosOutliner(TypeBrowser tb, boolean isStreamed)
          Creates an AmosOutliner object from a typebrowser object and a boolean for the streaming property.
AmosOutliner(TypeBrowser tb, boolean isStreamed, java.lang.String column)
          Creates an AmosOutliner object from a typebrowser object and a String for the first column heading.
AmosOutliner(TypeBrowser tb, java.lang.Exception err)
          Creates an AmosOutliner object to display a certain exception.
AmosOutliner(TypeBrowser tb, java.lang.String column)
          Creates an unstreamed AmosOutliner object from a typebrowser object and a String for the first column.
AmosOutliner(TypeBrowser tb, java.lang.String[] columns)
          creates an unstreamed AmosOutliner object from a typebrowser object and a String array of column headings.
 
Method Summary
 void addToExpanded(StringVector v)
           
 void addToLowerPanel(java.awt.Component c)
           
 void closeAndSaveCashed(AmosOutliner dest)
          Method to close the scan and transfer the cashed AmosNodes into another open AmosOutliner.
 void closeScan()
           
 void collapseAll()
           
 void deleteSelectedNodes()
           
 void display(callin.Scan theScan)
          Displays an arbitary scan in the outliner.
 void displayTuple(callin.Tuple tp)
          Displays a tuple from the callin interface
 void expandAll()
           
 void expandAll(AmosNode nd)
           
 void folderChanged(Goovi.JCOutlinerNode nd)
           
 AmosTree getAmosTree()
           
 NodeCash getNodeCash()
           
 Goovi.MyOutliner getOutliner()
           
 AmosNode getRoot()
           
 StringVector getSelectedNames()
           
 AmosNode getSelectedNode()
           
 Goovi.JCOutlinerNode[] getSelectedNodes()
           
 java.util.Vector getSelectedNodesAsVector()
           
 boolean isAnyNodeSelected()
           
 java.lang.String makeCommalist()
          Method to make a list separated by commas from the first level of nodes in the tree structure.
 void makeErrorIcon(java.lang.Exception err)
          Method to set the tree in this AmosOutliner to visualize an Exception.
 void makeNilTree()
          Creates a tree with one visible NIL-node
 AmosNode makeNode(callin.Tuple tp, int i)
           
 int numberOfSelected()
           
 void refreshInfoColumns()
          Method to refresh the info columns (Oid and type column.)
 void removeFromExpanded(java.lang.Object obj)
           
 void setHeading(java.lang.String str)
           
 void setTree(AmosTree tr)
           
 void sort()
          Sort the nodes in the tree.
 void viewEntireTree()
           
 void viewOnlySubTree()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getWidth, getVisibleRect, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmosOutliner

public AmosOutliner(TypeBrowser tb)
Creates an unstreamed AmosOutliner object from a typebrowser object.
Parameters:
tb - The typebrowser that this AmosOutliner originated from.

AmosOutliner

public AmosOutliner(TypeBrowser tb,
                    boolean isStreamed)
Creates an AmosOutliner object from a typebrowser object and a boolean for the streaming property.
Parameters:
tb - The typebrowser that this AmosOutliner originated from.
isStreamed - A boolean to set if this AmosOutliner should be streamed.

AmosOutliner

public AmosOutliner(TypeBrowser tb,
                    java.lang.String[] columns)
creates an unstreamed AmosOutliner object from a typebrowser object and a String array of column headings.
Parameters:
tb - The typebrowser that this AmosOutliner originated from.
columns - A String array of column headings.

AmosOutliner

public AmosOutliner(TypeBrowser tb,
                    boolean isStreamed,
                    java.lang.String column)
Creates an AmosOutliner object from a typebrowser object and a String for the first column heading. The streaming property is set with a boolean parameter.
Parameters:
tb - The typebrowser that this AmosOutliner originated from.
isStreamed - A boolean to set if this AmosOutliner should be streamed.
column - A String to represent first column heading.

AmosOutliner

public AmosOutliner(TypeBrowser tb,
                    java.lang.String column)
Creates an unstreamed AmosOutliner object from a typebrowser object and a String for the first column.
Parameters:
tb - The typebrowser that this AmosOutliner originated from.
column - A String to represent first column heading.

AmosOutliner

public AmosOutliner(TypeBrowser tb,
                    java.lang.Exception err)
Creates an AmosOutliner object to display a certain exception.
Parameters:
tb - The typebrowser that this AmosOutliner originated from.
err - The exception that occurred.
Method Detail

addToLowerPanel

public void addToLowerPanel(java.awt.Component c)

setHeading

public void setHeading(java.lang.String str)

refreshInfoColumns

public void refreshInfoColumns()
Method to refresh the info columns (Oid and type column.)

folderChanged

public void folderChanged(Goovi.JCOutlinerNode nd)

setTree

public void setTree(AmosTree tr)

viewEntireTree

public void viewEntireTree()

viewOnlySubTree

public void viewOnlySubTree()

isAnyNodeSelected

public boolean isAnyNodeSelected()

getSelectedNodes

public final Goovi.JCOutlinerNode[] getSelectedNodes()

getSelectedNodesAsVector

public java.util.Vector getSelectedNodesAsVector()

getSelectedNode

public AmosNode getSelectedNode()

getSelectedNames

public StringVector getSelectedNames()

numberOfSelected

public int numberOfSelected()

deleteSelectedNodes

public void deleteSelectedNodes()

expandAll

public void expandAll()

expandAll

public void expandAll(AmosNode nd)

addToExpanded

public void addToExpanded(StringVector v)

removeFromExpanded

public void removeFromExpanded(java.lang.Object obj)

collapseAll

public void collapseAll()

getAmosTree

public AmosTree getAmosTree()

getRoot

public AmosNode getRoot()

getOutliner

public final Goovi.MyOutliner getOutliner()

getNodeCash

public final NodeCash getNodeCash()

closeScan

public void closeScan()
               throws callin.AmosException

closeAndSaveCashed

public void closeAndSaveCashed(AmosOutliner dest)
                        throws callin.AmosException
Method to close the scan and transfer the cashed AmosNodes into another open AmosOutliner.

makeCommalist

public final java.lang.String makeCommalist()
Method to make a list separated by commas from the first level of nodes in the tree structure.

makeErrorIcon

public void makeErrorIcon(java.lang.Exception err)
Method to set the tree in this AmosOutliner to visualize an Exception.
Parameters:
err - The exception to visualize

makeNilTree

public void makeNilTree()
Creates a tree with one visible NIL-node

displayTuple

public void displayTuple(callin.Tuple tp)
                  throws java.lang.Exception
Displays a tuple from the callin interface
Parameters:
tp - Tuple to be displayed.

sort

public void sort()
Sort the nodes in the tree.

display

public void display(callin.Scan theScan)
Displays an arbitary scan in the outliner.
Parameters:
theScan - The scan to be displayed

makeNode

public AmosNode makeNode(callin.Tuple tp,
                         int i)
                  throws java.lang.Exception