com.ibm.dse.appl.ej.client
Class EJViewer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.ibm.dse.gui.SpPanel
                                |
                                +--com.ibm.dse.gui.DSECoordinatedPanel
                                      |
                                      +--com.ibm.dse.gui.OperationPanel
                                            |
                                            +--com.ibm.dse.appl.ej.client.EJViewer

public class EJViewer
extends OperationPanel
implements javax.swing.event.ListSelectionListener

This view allows the user to query the electronic journal tables. The queries are predefined by the system. When the user selects a query and updates the view, the view dynamically changes to reflect the widgets needed for entries to create the query. It also update the summary table columns to reflect the number and names of the columns expected in the result of that query.

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 com.ibm.dse.gui.DSECoordinatedPanel
aExceptionInOperationListener, executeNextView, externalizer
 
Fields inherited from class com.ibm.dse.gui.SpPanel
NULL_VALUE, refreshing
 
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
EJViewer()
          EJViewer constructor comment.
EJViewer(boolean isDoubleBuffered)
          EJViewer constructor comment.
EJViewer(java.awt.LayoutManager layout)
          EJViewer constructor comment.
EJViewer(java.awt.LayoutManager layout, boolean isDoubleBuffered)
          EJViewer constructor comment.
EJViewer(Operation o)
          EJViewer constructor comment.
EJViewer(java.lang.String aViewerName)
          EJViewer constructor comment.
 
Method Summary
 void enableDetailsButton()
          This method is to make sure that the user cannot click the details button until they make a selection in the table.
 java.util.Hashtable getConvertersTable()
          Returns convertersTable attribute
 java.lang.String getJournalAlias()
          Returns journalAlias attribute
 java.lang.String getSchemaInfoOperationName()
          Returns the schemaInfoOperationName attribute value
 java.lang.String getViewerMode()
          Returns viewerMode attribute
 java.lang.String getViewerName()
          Returns viewerName attribute.
 java.lang.String getViewerType()
          Returns viewerType attribute
 java.lang.String getViewOperationName()
          Returns viewOperationName attribute
 java.lang.String getXMLFile()
          Returns the XML file name including the full path
 java.lang.String getXMLParseImplementer()
          Returns the xmlParseImplementer attribute.
 void handleDetailsButton()
          Takes the selected row in the summary table and returns its full details from the Electronic journal table
 void handleSummaryButton()
          Returns from the details table back to the summary table
 void initializeProperties(java.lang.String aViewerName)
          Reads the properties from the dsedat.sgm file and initializes the attributes.
static void main(java.lang.String[] args)
          main entrypoint - starts the part when it is run as an application
 void reInitializeView()
          This method is used to clean up the context and reset the view to the original status before the update button was pressed.
 void setConvertersTable(java.util.Hashtable aTable)
          Sets convertersTable attribute
 void setJournalAlias(java.lang.String aString)
          Sets the journalAlias attribute
 void setSchemaInfoOperationName(java.lang.String aString)
          Sets the schemaInfoOperationName attribute value
 void setViewerMode(java.lang.String aString)
          Sets the viewerMode attribute
 void setViewerName(java.lang.String aString)
          Sets the viewerName attribute
 void setViewerType(java.lang.String aString)
          Sets the viewerType attribute
 void setViewOperationName(java.lang.String aString)
          Sets the viewOperationName attribute
 void setXMLFile(java.lang.String aFile)
          Sets the xmlFile attribute, file name including the full path
 void setXMLParseImplementer(java.lang.String aString)
          Sets the xmlParseImplementer attribute
 void updateQueryDescription()
          Updates the Query description with the selected query description.
 void updateView()
          Updates the view based on the query selected by adding the proper widgets needed to satisfy the query and adding the right columns in the summary table as expected by the result of the query.
 void valueChanged(javax.swing.event.ListSelectionEvent e)
          This method is needed to detect a selection change and enable the Details button.
 
Methods inherited from class com.ibm.dse.gui.OperationPanel
chainTo, chainToContextNamed, dataChanged, executeOper, getOperationPanel, getOperationPanelParent, handleDataChanged, handleDSECoordinationEvent, isChained, isCorrectStatus, refreshDataExchangers, setContextName, setValueAt, unchain
 
Methods inherited from class com.ibm.dse.gui.DSECoordinatedPanel
addCoordinatedEventListener, addExceptionInOperationListener, addToChildrenInErrorList, addToExecuteButtonsList, addToNextButtonsList, addToPrevButtonsList, addToRequiredNotFilledList, ancestor, ancestorAdded, ancestorMoved, ancestorRemoved, becomingActiveActions, becomingUnactiveActions, clearPanelContents, close, close, close, commit, convertFromEuros, convertToEuros, disposePanel, enableExecuteButton, enableNextButton, enableOkButton, enableOkButton, enablePreviousButton, externalizer, fireCoordinationEvent, fireCoordinationEvent, fireHandleExceptionInOperation, get_EMUCurrencyButton, get_EuroButton, get_HelpButton, get_OkButton, getCheckBoxesAndButtonGroupsInitialized, getChildrenInError, getChildrenNotFilled, getClassForHelpImplementation, getContext, getDataExchangers, getDisableWhileOperationRunning, getDSECoordinatedPanel, getDSECoordinatedPanelParent, getEMUCurrency, getExecuteButtons, getExecuteWhenOpen, getExternalizer, getIconName, getInstanceOperation, getIsInEuros, getListOfCheckBoxes, getNextButtons, getOperation, getOperationName, getOutsiders, getPrevButtons, getReplyOperationName, getReplyOutputFormatName, getSavedData, getTitle, getValidationMethod, getValueAt, getViewName, handleErrorMessage, handleOperationRepliedEvent, initializeFrom, instanceOperationIfNecessary, isClosable, isFirstVisible, manageHelp, postInitialize, readExternal, readExternal, readObject, refresh, register, register, registerOutsider, removeCoordinatedEventListener, removeDataExchanger, removeExceptionInOperationListener, removeExternal, removeFromChildrenInErrorList, removeFromExecuteButtonsList, removeFromNextButtonsList, removeFromRequiredNotFilledList, rollBack, saveData, set_EMUCurrencyButton, set_EuroButton, set_HelpButton, set_OkButton, setCheckBoxesAndButtonGroupsInitialized, setChildrenInError, setChildrenNotFilled, setClassForHelpImplementation, setClosable, setContext, setDataExchangers, setDisableWhileOperationRunning, setEMUCurrency, setExecuteWhenOpen, setExternalizer, setFirstVisible, setIconName, setInstanceOperation, setIsInEuros, setListOfCheckBoxes, setOperation, setOperationName, setOperationName, setOutsiders, setReplyOperationName, setReplyOutputFormatName, setSavedData, setTitle, setValidationMethod, setViewName, toStrings, toTags, tryRunOperation, writeExternal, writeExternal
 
Methods inherited from class com.ibm.dse.gui.SpPanel
actionPerformed, add, add, add, add, add, changeComponentOrientation, clear, clearDataDirection, clearDataExchangersScrolls, enableListScrolls, get_ClearButton, get_RepeatButton, getActivatedOkKey, getClearOutputData, getComponents, getEditable, getEnableStateElements, getErrorBean, getErrorLabel, getHelpID, getHelpID, getSpPanel, getSpPanelParent, init, key, keyPressed, keyReleased, keyTyped, manageHelp, repeat, repeatDataExchangersScrolls, saveEnabledStateComponents, set_ClearButton, set_RepeatButton, setActivatedOkKey, setClearOutputData, setEditable, setEnabled, setEnableStateElements, setErrorBean, setErrorLabel, setHelpID, setVisible
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, 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, getVisibleRect, getWidth, 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, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, 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, 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, wait, wait, wait
 

Constructor Detail

EJViewer

public EJViewer()
EJViewer constructor comment.

EJViewer

public EJViewer(Operation o)
EJViewer constructor comment.
Parameters:
o - com.ibm.dse.base.Operation

EJViewer

public EJViewer(java.awt.LayoutManager layout)
EJViewer constructor comment.
Parameters:
layout - java.awt.LayoutManager

EJViewer

public EJViewer(java.awt.LayoutManager layout,
                boolean isDoubleBuffered)
EJViewer constructor comment.
Parameters:
layout - java.awt.LayoutManager
isDoubleBuffered - boolean

EJViewer

public EJViewer(java.lang.String aViewerName)
EJViewer constructor comment.
Parameters:
aViewerName - java.lang.String

EJViewer

public EJViewer(boolean isDoubleBuffered)
EJViewer constructor comment.
Parameters:
isDoubleBuffered - boolean
Method Detail

enableDetailsButton

public void enableDetailsButton()
This method is to make sure that the user cannot click the details button until they make a selection in the table.

getConvertersTable

public java.util.Hashtable getConvertersTable()
Returns convertersTable attribute
Returns:
java.util.Hashtable

getJournalAlias

public java.lang.String getJournalAlias()
Returns journalAlias attribute
Returns:
java.lang.String

getSchemaInfoOperationName

public java.lang.String getSchemaInfoOperationName()
Returns the schemaInfoOperationName attribute value
Returns:
java.lang.String

getViewerMode

public java.lang.String getViewerMode()
Returns viewerMode attribute
Returns:
java.lang.String

getViewerName

public java.lang.String getViewerName()
Returns viewerName attribute.
Returns:
java.lang.String

getViewerType

public java.lang.String getViewerType()
Returns viewerType attribute
Returns:
java.lang.String

getViewOperationName

public java.lang.String getViewOperationName()
Returns viewOperationName attribute
Returns:
java.lang.String

getXMLFile

public java.lang.String getXMLFile()
Returns the XML file name including the full path
Returns:
java.lang.String

getXMLParseImplementer

public java.lang.String getXMLParseImplementer()
Returns the xmlParseImplementer attribute.
Returns:
java.lang.String

handleDetailsButton

public void handleDetailsButton()
Takes the selected row in the summary table and returns its full details from the Electronic journal table

handleSummaryButton

public void handleSummaryButton()
Returns from the details table back to the summary table

initializeProperties

public void initializeProperties(java.lang.String aViewerName)
Reads the properties from the dsedat.sgm file and initializes the attributes. If an attribute is not defined in the sgml file then the default value is used.
Parameters:
aString - java.lang.String

main

public static void main(java.lang.String[] args)
main entrypoint - starts the part when it is run as an application
Parameters:
args - java.lang.String[]

reInitializeView

public void reInitializeView()
This method is used to clean up the context and reset the view to the original status before the update button was pressed. This method is called every time the user changes the query selection.

setConvertersTable

public void setConvertersTable(java.util.Hashtable aTable)
Sets convertersTable attribute
Parameters:
aTable - java.util.Hashtable

setJournalAlias

public void setJournalAlias(java.lang.String aString)
Sets the journalAlias attribute
Parameters:
aString - java.lang.String

setSchemaInfoOperationName

public void setSchemaInfoOperationName(java.lang.String aString)
Sets the schemaInfoOperationName attribute value
Parameters:
aString - java.lang.String

setViewerMode

public void setViewerMode(java.lang.String aString)
Sets the viewerMode attribute
Parameters:
aString - java.lang.String

setViewerName

public void setViewerName(java.lang.String aString)
Sets the viewerName attribute
Parameters:
aString - java.lang.String

setViewerType

public void setViewerType(java.lang.String aString)
Sets the viewerType attribute
Parameters:
aString - java.lang.String

setViewOperationName

public void setViewOperationName(java.lang.String aString)
Sets the viewOperationName attribute
Parameters:
aString - java.lang.String

setXMLFile

public void setXMLFile(java.lang.String aFile)
Sets the xmlFile attribute, file name including the full path
Parameters:
aFile - java.lang.String

setXMLParseImplementer

public void setXMLParseImplementer(java.lang.String aString)
Sets the xmlParseImplementer attribute
Parameters:
aString - java.lang.String

updateQueryDescription

public void updateQueryDescription()
Updates the Query description with the selected query description.

updateView

public void updateView()
Updates the view based on the query selected by adding the proper widgets needed to satisfy the query and adding the right columns in the summary table as expected by the result of the query.

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
This method is needed to detect a selection change and enable the Details button.
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener
Parameters:
event - javax.swing.event.ListSelectionEvent