infosapient.ui
Class InfoSapientSetList

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--infosapient.ui.InfoSapientSetList

public class InfoSapientSetList
extends javax.swing.JPanel
implements javax.swing.event.UndoableEditListener

Class InfoSapientSetList.java

Version:
$Revision: 1.1.1.1 $
See Also:
Serialized Form

Inner Class Summary
(package private)  class InfoSapientSetList.ApplyAction
           
(package private)  class InfoSapientSetList.CreateAction
           
(package private)  class InfoSapientSetList.DeleteAction
           
(package private)  class InfoSapientSetList.EditAction
           
(package private)  class InfoSapientSetList.FzySetList_JTable
           
(package private)  class InfoSapientSetList.RedoAction
           
(package private)  class InfoSapientSetList.UndoAction
           
 
Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardBinding, javax.swing.JComponent.KeyboardState
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
protected  javax.swing.JMenuItem acceptSetItem
           
static java.lang.String ACTION_SUFFIX
          Suffix applied to the key used in resource file lookups for an action.
protected  javax.swing.Action[] actionsList
           
static java.lang.String APPLY_ACTION
          Presentation name for apply action command
protected  InfoSapientSetList.ApplyAction applyAction
           
protected  FzyAttribute attribute
           
(package private) static int CMPMEM
          The column representing the Complete membership of this set
protected  java.util.Hashtable commands
           
protected  InfoSapientController controller
           
static java.lang.String CREATE_ACTION
          Presentation name for create action command
protected  InfoSapientSetList.CreateAction createAction
           
protected  javax.swing.JMenuItem createSetItem
           
protected  int currentLastRow
           
static java.lang.String DELETE_ACTION
          Presentation name for delete action command
protected  InfoSapientSetList.DeleteAction deleteAction
           
protected  javax.swing.JMenuItem deleteSetItem
           
static java.lang.String EDIT_ACTION
          Presentation name for edit action command
protected  InfoSapientSetList.EditAction editAction
           
protected  javax.swing.JMenuItem editSetItem
           
protected  int finalRow
           
protected static boolean FOUND_PROPERTIES
           
static java.lang.String HEADING_SUFFIX
          Suffix applied to the key for the JTable Headings
(package private) static int HIDOM
          The column representing the High Domain of this set
static java.lang.String IMAGE_SUFFIX
          Suffix applied to the key used in resource file lookups for an image.
protected  boolean incRow
           
static java.lang.String LABEL_SUFFIX
          Suffix applied to the key used in resource file lookups for a label.
(package private) static int LODOM
          The column representing the Low Domain of this set
(package private) static int NAME
          The column of names of each set
(package private) static int NCOLUMNS
          The current number of columns displayed in the table.
protected  javax.swing.JPopupMenu pMenu
           
protected  InfoSapientSetList.RedoAction redoAction
           
protected  javax.swing.RepaintManager repaintManager
           
protected static java.util.ResourceBundle RESOURCES
           
protected  java.util.Vector rowContents
           
protected  javax.swing.JScrollPane scrollpane
           
(package private) static int SEQNUM
          The column of sequence numbers for the table display
(package private) static long serialVersionUID
           
protected  FzySet set
           
protected  java.lang.String setStatusCmd
           
protected  java.lang.Object setTypeSelection
           
protected  java.util.Vector setVector
           
(package private) static int SIDE
          The column of the "sidedness" of the set
protected  javax.swing.table.DefaultTableModel tableModel
           
protected  InfoSapientSetList.FzySetList_JTable tableView
           
static java.lang.String TIP_SUFFIX
          Suffix applied to the key used in resource file lookups for tooltip text.
protected  javax.swing.JToolBar toolbar
           
(package private) static int TYPE
          The column of the set type
protected  InfoSapientSetList.UndoAction undoAction
          Actions defined by InfoSapientSetList
protected  javax.swing.undo.UndoManager undoMgr
           
 
Fields inherited from class javax.swing.JPanel
defaultLayout, uiClassID
 
Fields inherited from class javax.swing.JComponent
_bounds, accessibleContext, alignmentX, alignmentY, ANCESTOR_USING_BUFFER, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, flags, HAS_FOCUS, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, paintingChild, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, uiClassID, UNDEFINED_CONDITION, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
InfoSapientSetList(FzyAttribute attribute, InfoSapientController controller)
           
 
Method Summary
(package private) static void ()
           
protected  java.util.Vector createTableHeadings()
          Create table headings from the headings provided in the settable.properties file.
protected  java.awt.Component createTool(java.lang.String key)
          Hook through which every toolbar item is created.
protected  java.awt.Component createToolbar()
          Create the toolbar.
protected  javax.swing.JButton createToolbarButton(java.lang.String key)
          Create a button to go inside of the toolbar.
 javax.swing.Action getAction(java.lang.String cmd)
          Fetch a specific action for a command keyword
 javax.swing.Action[] getActions()
          Fetch the list of actions supported by this editor.
protected  InfoSapientController getController()
           
protected  javax.swing.JPanel getPanel()
           
protected  java.net.URL getResource(java.lang.String key)
          Given a key returns a URL associated with that key.
protected  java.lang.String getResourceString(java.lang.String nm)
          Given a key, returns the parameter string associated with that key.
protected  java.awt.Container getToolbar()
           
 void insertSet(int rowNum, FzySet theSet)
           
 void removeAll()
           
protected  java.lang.String[] tokenize(java.lang.String input)
          Take the given string and chop it up into a series of strings on whitespace boundries.
 void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
          Messaged when the JTable has created an edit, the edit is added to undoMgr, an instance of UndoManager.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI, writeObject
 
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, adjustPaintFlags, alwaysOnTop, bindingForKeyStroke, checkIfChildObscuredBySibling, computeVisibleRect, computeVisibleRect, contains, createToolTip, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperties, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getFlag, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, keyboardBindings, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paintWithBuffer, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, readObject, rectangleIsObscured, rectangleIsObscuredBySibling, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFlag, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, nextFocus, paintComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printOneComponent, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeContainerListener, setCursor, setFocusOwner, setLayout, transferFocus, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, constructComponentName, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocale, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, 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, registerNatives, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID

SEQNUM

static final int SEQNUM
The column of sequence numbers for the table display

NAME

static final int NAME
The column of names of each set

TYPE

static final int TYPE
The column of the set type

SIDE

static final int SIDE
The column of the "sidedness" of the set

LODOM

static final int LODOM
The column representing the Low Domain of this set

HIDOM

static final int HIDOM
The column representing the High Domain of this set

CMPMEM

static final int CMPMEM
The column representing the Complete membership of this set

NCOLUMNS

static final int NCOLUMNS
The current number of columns displayed in the table.

IMAGE_SUFFIX

public static final java.lang.String IMAGE_SUFFIX
Suffix applied to the key used in resource file lookups for an image.

LABEL_SUFFIX

public static final java.lang.String LABEL_SUFFIX
Suffix applied to the key used in resource file lookups for a label.

ACTION_SUFFIX

public static final java.lang.String ACTION_SUFFIX
Suffix applied to the key used in resource file lookups for an action.

TIP_SUFFIX

public static final java.lang.String TIP_SUFFIX
Suffix applied to the key used in resource file lookups for tooltip text.

HEADING_SUFFIX

public static final java.lang.String HEADING_SUFFIX
Suffix applied to the key for the JTable Headings

EDIT_ACTION

public static final java.lang.String EDIT_ACTION
Presentation name for edit action command

CREATE_ACTION

public static final java.lang.String CREATE_ACTION
Presentation name for create action command

DELETE_ACTION

public static final java.lang.String DELETE_ACTION
Presentation name for delete action command

APPLY_ACTION

public static final java.lang.String APPLY_ACTION
Presentation name for apply action command

RESOURCES

protected static java.util.ResourceBundle RESOURCES

FOUND_PROPERTIES

protected static boolean FOUND_PROPERTIES

currentLastRow

protected transient int currentLastRow

finalRow

protected transient int finalRow

incRow

protected transient boolean incRow

controller

protected transient InfoSapientController controller

attribute

protected transient FzyAttribute attribute

set

protected transient FzySet set

setVector

protected transient java.util.Vector setVector

rowContents

protected transient java.util.Vector rowContents

tableModel

protected transient javax.swing.table.DefaultTableModel tableModel

scrollpane

protected transient javax.swing.JScrollPane scrollpane

tableView

protected transient InfoSapientSetList.FzySetList_JTable tableView

toolbar

protected transient javax.swing.JToolBar toolbar

pMenu

protected transient javax.swing.JPopupMenu pMenu

createSetItem

protected transient javax.swing.JMenuItem createSetItem

editSetItem

protected transient javax.swing.JMenuItem editSetItem

deleteSetItem

protected transient javax.swing.JMenuItem deleteSetItem

acceptSetItem

protected transient javax.swing.JMenuItem acceptSetItem

repaintManager

protected transient javax.swing.RepaintManager repaintManager

undoMgr

protected transient javax.swing.undo.UndoManager undoMgr

commands

protected transient java.util.Hashtable commands

setTypeSelection

protected transient java.lang.Object setTypeSelection

setStatusCmd

protected transient java.lang.String setStatusCmd

undoAction

protected transient InfoSapientSetList.UndoAction undoAction
Actions defined by InfoSapientSetList

redoAction

protected transient InfoSapientSetList.RedoAction redoAction

createAction

protected transient InfoSapientSetList.CreateAction createAction

editAction

protected transient InfoSapientSetList.EditAction editAction

applyAction

protected transient InfoSapientSetList.ApplyAction applyAction

deleteAction

protected transient InfoSapientSetList.DeleteAction deleteAction

actionsList

protected transient javax.swing.Action[] actionsList
Constructor Detail

InfoSapientSetList

public InfoSapientSetList(FzyAttribute attribute,
                          InfoSapientController controller)
Method Detail

static void ()

createTableHeadings

protected java.util.Vector createTableHeadings()
Create table headings from the headings provided in the settable.properties file.

createTool

protected java.awt.Component createTool(java.lang.String key)
Hook through which every toolbar item is created.
Parameters:
String - -- the key for the command this tool is supposed to represent.

createToolbar

protected java.awt.Component createToolbar()
Create the toolbar. This method reads the settable.properties resource file for the definition of the toolbar.

createToolbarButton

protected javax.swing.JButton createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar. By default this will load an image resource. The image filename is relative to the classpath (including the '.' directory if its a part of the classpath), and may either be in a JAR file or a separate file.
Parameters:
key - The key in the resource file to serve as the basis of lookups.

getAction

public javax.swing.Action getAction(java.lang.String cmd)
Fetch a specific action for a command keyword
Parameters:
String - -- the cmdKey

getActions

public javax.swing.Action[] getActions()
Fetch the list of actions supported by this editor. It is implemented to return the list of actions supported by the embedded JTextComponent augmented with the actions defined locally.

getController

protected InfoSapientController getController()

getPanel

protected javax.swing.JPanel getPanel()

getResource

protected java.net.URL getResource(java.lang.String key)
Given a key returns a URL associated with that key.
Parameters:
String - key to be used for resource lookup.

getResourceString

protected java.lang.String getResourceString(java.lang.String nm)
Given a key, returns the parameter string associated with that key.
Parameters:
String - - the key to the command hashtable

getToolbar

protected java.awt.Container getToolbar()

insertSet

public void insertSet(int rowNum,
                      FzySet theSet)

removeAll

public void removeAll()
Overrides:
removeAll in class java.awt.Container

tokenize

protected java.lang.String[] tokenize(java.lang.String input)
Take the given string and chop it up into a series of strings on whitespace boundries. This is useful for trying to get an array of strings out of the resource file.
Parameters:
String - - the parameter of the resource file where the string is found.

undoableEditHappened

public void undoableEditHappened(javax.swing.event.UndoableEditEvent e)
Messaged when the JTable has created an edit, the edit is added to undoMgr, an instance of UndoManager.
Specified by:
undoableEditHappened in interface javax.swing.event.UndoableEditListener

License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved