IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class SpTable

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JTable
                  extended bycom.ibm.dse.gui.SpTable
All Implemented Interfaces:
javax.accessibility.Accessible, javax.swing.event.CellEditorListener, java.awt.event.ComponentListener, DataExchanger, DataExchangerWithList, ErrorMessageGenerator, EuroConvertible, java.util.EventListener, java.awt.event.FocusListener, GUIComponent, java.awt.image.ImageObserver, javax.swing.event.ListSelectionListener, java.awt.MenuContainer, PanelActions, javax.swing.Scrollable, java.io.Serializable, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener

public class SpTable
extends javax.swing.JTable
implements DataExchangerWithList, ErrorMessageGenerator, EuroConvertible, GUIComponent, java.awt.event.ComponentListener, java.awt.event.FocusListener

The SpTable is a user-interface component that presents data in a two-dimensional table format. The SpTable has many features that make it possible to customize its rendering and editing but provides defaults for these features so that simple tables can be set up easily.

The SpTable uses integers exclusively to refer to both the rows and the columns of the model that it displays. The SpTable simply takes a tabular range of cells and uses getValueAt(int, int) to retrieve and display the values from the model.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JTable
javax.swing.JTable.AccessibleJTable
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
 
Fields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader
 
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.Container
 
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
SpTable()
          This constructor creates a SpTable object.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener ae)
          Documented in the JDK.
 void addCoordinatedEventListener(CoordinatedEventListener newListener)
          Adds an CoordinatedEventListener.
 void addDataChangedListener(DataChangedListener newListener)
          Deprecated. (use addCoordinatedEventListener(CoordinatedEventListener newListener))
 void addErrorMessageListener(ErrorMessageListener newListener)
          Adds an ErrorMessageListener.
protected  java.lang.String calculateValueInTargetCurrency(java.lang.String source, boolean toEuro, int column)
           
 void columnMoved(javax.swing.event.TableColumnModelEvent e)
          a column has been moved.
 void componentHidden(java.awt.event.ComponentEvent e)
          Invoked when component has been hidden.
 void componentMoved(java.awt.event.ComponentEvent e)
          Invoked when component has been moved.
 void componentResized(java.awt.event.ComponentEvent e)
          Invoked when component has been resized.
 void componentShown(java.awt.event.ComponentEvent e)
          Invoked when component has been shown.
protected  java.lang.String convertCurrency(java.lang.String amount, boolean toEuro)
          Converts to/from euro the amount specified as parameter.
 void convertFromEuros()
          Converts to EMU currency the value in euros and updates appropriately the valueInEuros and valueInEMUCurrency fields.
 void convertToEuros()
          Converts to euros the value in EMU currency and updates appropriately the valueInEuros and valueInEMUCurrency fields.
 void createDefaultColumnsFromModel()
          This method will create default columns for the table from the data model using the getColumnCount() and getColumnType() methods defined in the TableModel interface.
protected  void evaluateEditingValue()
          Evaluates state and color cell of editing value.
protected  void executeBeanReactions()
          When a Bean changes states and the end state is a non-error state, the Bean will call the beanReaction(java.awt.Component) public static method of the specified class.
 void fireCoordinationEvent()
          Fires a DSECoordinationEvent when data has changed.
 void fireCoordinationEvent(DSECoordinationEvent event)
          Fires a DSECoordinationEvent when data has changed.
 void fireHandleDataChanged()
          Deprecated. (use fireCoordinationEvent())
 void fireHandleDataChanged(DataChangedEvent event)
          Method to support listener events.
 void fireHandleErrorMessage(ErrorMessageEvent event)
          Informs that and error in the table has happened.
 void focusGained(java.awt.event.FocusEvent e)
          Handles events for the FocusListener interface.
 void focusLost(java.awt.event.FocusEvent e)
          Handles events for the FocusListener interface.
 boolean getActivatedOkKey()
          Gets the activatedOkKey property (boolean) value.
 ColorSettings getAllColors()
          Gets the allColors property (com.ibm.dse.gui.ColorSettings) value.
 java.lang.String getAlternativeDataName()
          Gets the alternativeDataName property (java.lang.String) value.
 java.lang.String getBeansReactions()
          Gets the beansReactions property (java.lang.String) value.
 Converter getConverter(int column)
          Gets the converter property associated to the column column.
 boolean getConvertible(int column)
          Gets the EMU-Euro convertible property associated to the column column.
 java.lang.String getDataDirection()
          Gets the dataDirection property (java.lang.String) value.
 DataElement getDataElement(int arg1, int arg2)
          Returns the cell DataElement at row=arg1 and column=arg2.
 java.lang.String getDataName()
          Gets the dataName property (java.lang.String) value.
 VectorEditor getDataNameAndColumns()
          Gets the dataNameAndColumns property (com.ibm.dse.gui.VectorEditor) value.
 java.lang.String getDataNameForList()
          Gets the dataNameForList property (java.lang.String) value.
 java.lang.String getDataToClear()
          Gets the dataToClear property (java.lang.String) value.
 java.lang.Object getDataValue()
          Gets the dataValue property (Object) value.
 java.lang.Object getDataValueForList()
          Gets the dataValueForList property (java.lang.Object) value.
 DSECoordinatedPanel getDSECoordinatedPanel()
          Gets the DSECoordinatedPanel where the component is placed
 java.lang.String getErrorMessage()
          Gets the ErrorMessage property value from its formatters (if exists).
 java.lang.String[] getErrorMessage(int row, int column)
          Gets the errorMessage property value.
 java.lang.String getHelpID()
          Gets the helpID property (java.lang.String) value.
 boolean getInError()
          Gets the inError property (boolean) value.
 boolean getInError(int row, int column)
          Gets the inError property (boolean) value.
 boolean getIsEmpty()
          Gets the Empty property (boolean) value.
 NavigationParameters getNavigationParameters()
          Gets the navigationParameters property (com.ibm.dse.gui.NavigationParameters) value.
protected  boolean getRefreshList()
          Gets the refeshList property (boolean) value.
 boolean getSelectionRequired()
          Gets the selectionRequired property (boolean) value.
protected  java.lang.String getSourceValueForConversion(int row, int column)
          Returns the cell value at row and column formatted with the formatter column.
protected  java.lang.String getSourceValueForConversion2(java.lang.String text, int column)
          It receives a String formatted with the formatter column.
 SpPanel getSpPanel()
          Gets the SpPanel where the component is placed
 java.lang.String getType()
          Gets the type property (java.lang.String) value.
 java.lang.Object getValueInEMUCurrency()
          Gets the valueInEMUCurrency property (Object) value.
 java.lang.Object getValueInEMUCurrency(int row, int column)
          Gets the valueInEMUCurrency property (Object) value.
 java.lang.Object getValueInEuros()
          Gets the valueInEuros property (Object) value.
 java.lang.Object getValueInEuros(int row, int column)
          Gets the valueInEuroCurrency property (Object) value.
 boolean hasAlternativeDataName()
          Returns if the SpTable has alternative data name attribute.
 boolean isInError()
          Gets the inError property (boolean) value.
 boolean isKeyedValue()
          if true this bean returns a composed data value.
 boolean isRequired()
          Returns if the SpTable is required or not.
 void keyPressed(java.awt.event.KeyEvent e)
          Handles events for the KeyListener interface.
 void moveColumn(int column, int targetColumn)
          Moves the column column to the position currently occupied by the column targetColumn.
protected  void moveDataNameAndColumns(VectorEditor dataNameAndColumns)
           
protected  void processComponentKeyEvent(java.awt.event.KeyEvent e)
          It is called after interested listeners have managed the event.
protected  void processKeyEvent(java.awt.event.KeyEvent e)
          Processes key events occurring on this component.
 void removeActionListener(java.awt.event.ActionListener ae)
          To comply with DataExchanger interface.
 void removeCoordinatedEventListener(CoordinatedEventListener newListener)
          Removes a CoordinatedEventListener.
 void removeDataChangedListener(DataChangedListener newListener)
          Deprecated. (use removeCoordinatedEventListener(CoordinatedEventListener newListener))
 void removeErrorMessageListener(ErrorMessageListener newListener)
          Removes an ErrorMessageListener.
protected  void rowSelected(javax.swing.event.ListSelectionEvent e)
          A row in the table has been selected
 void setActivatedOkKey(boolean activatedOkKey)
          Sets the activatedOkKey property (boolean) value.
 void setAllColors(ColorSettings allColors)
          Sets the allColors property (com.ibm.dse.gui.ColorSettings) value.
 void setAlternativeDataName(java.lang.String alternativeDataName)
          Sets the alternativeDataName property (java.lang.String) value.
 void setBeansReactions(java.lang.String beansReactions)
          Sets the beansReactions property (java.lang.String) value.
 void setComponentOrientation(java.awt.ComponentOrientation o)
          Set the language-sensitive orientation that is to be used to order the elements or text within this component.
 void setDataDirection(java.lang.String dataDirection)
          Sets the dataDirection property (java.lang.String) value.
 void setDataName(java.lang.String dataName)
          Sets the dataName property (java.lang.String) value.
 void setDataNameAndColumns(VectorEditor dataNameAndColumns)
          Sets the dataNameAndColumns property (com.ibm.dse.gui.VectorEditor) value.
 void setDataNameForList(java.lang.String dataNameForList)
          Sets the dataNameForList property (java.lang.String) value.
 void setDataToClear(java.lang.String dataToClear)
          Sets the dataToClear property (java.lang.String) value.
 void setDataValue(java.lang.Object dataValue)
          Sets the dataValue property (Object) value.
 void setDataValueForList(java.lang.Object dataValue)
          Sets the dataValueForList property (Object) value.
protected  void setDataValueFromHash(Hashtable ht)
          Sets the dataValue property value from a Hashtable.
 void setEmpty(boolean inEmpty, int row, int column)
          Sets the empty property (boolean) value.
 void setEnabled(boolean b)
          Enables or disables the SpTable depending on the parameter.
protected  void setErrorMessage(java.lang.String[] messageError, int row, int column)
          Sets the errorMessage property (String[]) value.
protected  void setErrorMessage(java.lang.String messageError, int row, int column)
          Sets the errorMessage property (String) value.
 void setHelpID(java.lang.String helpID)
          Sets the helpID property (java.lang.String) value.
 void setInError(boolean inError, int row, int column)
          Sets the inError property (boolean) value.
 void setNavigationParameters(NavigationParameters navigationParameters)
          Sets the navigationParameters property (com.ibm.dse.gui.NavigationParameters) value.
protected  void setRefreshList(boolean refeshList)
          Sets the refeshList property (boolean) value.
 void setRequired(boolean required)
          Sets the required property (boolean) value.
 void setSelectionRequired(boolean selectionRequired)
          Sets the selectionRequired property (boolean) value.
 void setType(java.lang.String type)
          Sets the type property (java.lang.String) value.
 void setValueAt(java.lang.Object aValue, int row, int column)
          Sets the value for the cell at row and column.
 void setValueInEMUCurrency(java.lang.Object valueInEMUCurrency)
          Sets the valueInEMUCurrency property (java.lang.Object) value.
 void setValueInEMUCurrency(java.lang.Object valueInEMUCurrency, int row, int column)
          Sets the valueInEMUCurrency property (java.lang.Object) value.
 void setValueInEuros(java.lang.Object valueInEuros)
          Sets the valueInEuros property (Object) value.
 void setValueInEuros(java.lang.Object valueInEuro, int row, int column)
          Sets the valueInEuros property (Object) value.
protected  void updateValues(java.lang.String ve, java.lang.String vp, int row, int column)
          Sets the valueInEuros and valueInEMUCurrency properties.
 
Methods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addNotify, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, createDefaultColumnModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createDefaultTableHeader, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getEditingColumn, getEditingRow, getEditorComponent, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getRowCount, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getValueAt, initializeLocalVars, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, paramString, prepareEditor, prepareRenderer, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setEditingColumn, setEditingRow, setGridColor, setIntercellSpacing, setModel, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, sizeColumnsToFit, sizeColumnsToFit, tableChanged, unconfigureEnclosingScrollPane, updateUI, valueChanged
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpTable

public SpTable()
This constructor creates a SpTable object.

Method Detail

addActionListener

public void addActionListener(java.awt.event.ActionListener ae)
Documented in the JDK. Complies with the DataExchanger interface.

Specified by:
addActionListener in interface DataExchanger
Parameters:
ae - java.awt.event.ActionEvent

addCoordinatedEventListener

public void addCoordinatedEventListener(CoordinatedEventListener newListener)
Adds an CoordinatedEventListener.

Specified by:
addCoordinatedEventListener in interface DataExchanger
Parameters:
newListener - CoordinatedEventListener

addDataChangedListener

public void addDataChangedListener(DataChangedListener newListener)
Deprecated. (use addCoordinatedEventListener(CoordinatedEventListener newListener))

Adds a DataChangedListener.

Specified by:
addDataChangedListener in interface DataExchanger
Parameters:
newListener - DataChangedListener

addErrorMessageListener

public void addErrorMessageListener(ErrorMessageListener newListener)
Adds an ErrorMessageListener.

Specified by:
addErrorMessageListener in interface ErrorMessageGenerator
Parameters:
newListener - ErrorMessageListener

calculateValueInTargetCurrency

protected java.lang.String calculateValueInTargetCurrency(java.lang.String source,
                                                          boolean toEuro,
                                                          int column)

columnMoved

public void columnMoved(javax.swing.event.TableColumnModelEvent e)
a column has been moved.

Specified by:
columnMoved in interface javax.swing.event.TableColumnModelListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Invoked when component has been hidden.

Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Invoked when component has been moved.

Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Invoked when component has been resized.

Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Invoked when component has been shown.

Specified by:
componentShown in interface java.awt.event.ComponentListener

convertCurrency

protected java.lang.String convertCurrency(java.lang.String amount,
                                           boolean toEuro)
Converts to/from euro the amount specified as parameter.

Parameters:
amount - String, the amount to be converted (formatted as "standard" float)
toEuro - boolean, indicates if the conversion is to or from euro
Returns:
String - the converted amount

convertFromEuros

public void convertFromEuros()
Converts to EMU currency the value in euros and updates appropriately the valueInEuros and valueInEMUCurrency fields.

Specified by:
convertFromEuros in interface EuroConvertible

convertToEuros

public void convertToEuros()
Converts to euros the value in EMU currency and updates appropriately the valueInEuros and valueInEMUCurrency fields.

Specified by:
convertToEuros in interface EuroConvertible

createDefaultColumnsFromModel

public void createDefaultColumnsFromModel()
This method will create default columns for the table from the data model using the getColumnCount() and getColumnType() methods defined in the TableModel interface. This method will clear any exsiting columns before creating the new columns based on information from the model.


evaluateEditingValue

protected void evaluateEditingValue()
Evaluates state and color cell of editing value.


executeBeanReactions

protected void executeBeanReactions()
When a Bean changes states and the end state is a non-error state, the Bean will call the beanReaction(java.awt.Component) public static method of the specified class.


fireCoordinationEvent

public void fireCoordinationEvent()
Fires a DSECoordinationEvent when data has changed.


fireCoordinationEvent

public void fireCoordinationEvent(DSECoordinationEvent event)
Fires a DSECoordinationEvent when data has changed.

Parameters:
event - DSECoordinationEvent

fireHandleDataChanged

public void fireHandleDataChanged()
Deprecated. (use fireCoordinationEvent())

Fires a DataChangedEvent when data has changed.


fireHandleDataChanged

public void fireHandleDataChanged(DataChangedEvent event)
Method to support listener events.

Parameters:
event - DataChangedEvent

fireHandleErrorMessage

public void fireHandleErrorMessage(ErrorMessageEvent event)
Informs that and error in the table has happened.

Specified by:
fireHandleErrorMessage in interface ErrorMessageGenerator
Parameters:
event - ErrorMessageEvent

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Handles events for the FocusListener interface.

Specified by:
focusGained in interface java.awt.event.FocusListener
Parameters:
e - java.awt.event.FocusEvent

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Handles events for the FocusListener interface.

Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
e - java.awt.event.FocusEvent

getActivatedOkKey

public boolean getActivatedOkKey()
Gets the activatedOkKey property (boolean) value.

Specified by:
getActivatedOkKey in interface GUIComponent
Returns:
boolean - the activatedOkKey property value
See Also:
setActivatedOkKey(boolean)

getAllColors

public ColorSettings getAllColors()
Gets the allColors property (com.ibm.dse.gui.ColorSettings) value.

Returns:
ColorSettings -the allColors property value
See Also:
setAllColors(com.ibm.dse.gui.ColorSettings)

getAlternativeDataName

public java.lang.String getAlternativeDataName()
Gets the alternativeDataName property (java.lang.String) value.

Specified by:
getAlternativeDataName in interface DataExchanger
Returns:
The alternativeDataName property value.
See Also:
setAlternativeDataName(java.lang.String)

getBeansReactions

public java.lang.String getBeansReactions()
Gets the beansReactions property (java.lang.String) value.

Returns:
The beansReactions property value.
See Also:
setBeansReactions(java.lang.String)

getConverter

public Converter getConverter(int column)
Gets the converter property associated to the column column.

Parameters:
column - int - the column associated.
Returns:
com.ibm.dse.gui.Converter - the converter associated to the column column.

getConvertible

public boolean getConvertible(int column)
Gets the EMU-Euro convertible property associated to the column column.

Parameters:
column - int - the column associated
Returns:
boolean - true if this column is EMU-Euro convertible

getDataDirection

public java.lang.String getDataDirection()
Gets the dataDirection property (java.lang.String) value.

Specified by:
getDataDirection in interface DataExchanger
Returns:
String - the dataDirection property value
See Also:
setDataDirection(java.lang.String)

getDataElement

public DataElement getDataElement(int arg1,
                                  int arg2)
Returns the cell DataElement at row=arg1 and column=arg2.

Parameters:
arg1 - int, the row
arg2 - int, the column
Returns:
DataElement - the DataElement at the specified cell

getDataName

public java.lang.String getDataName()
Gets the dataName property (java.lang.String) value.

Specified by:
getDataName in interface DataExchanger
Returns:
String - the dataName property value
See Also:
setDataName(java.lang.String)

getDataNameAndColumns

public VectorEditor getDataNameAndColumns()
Gets the dataNameAndColumns property (com.ibm.dse.gui.VectorEditor) value.

Returns:
VectorEditor - the dataNameAndColumns property value
See Also:
setDataNameAndColumns(com.ibm.dse.gui.VectorEditor)

getDataNameForList

public java.lang.String getDataNameForList()
Gets the dataNameForList property (java.lang.String) value.

Specified by:
getDataNameForList in interface DataExchangerWithList
Returns:
The dataNameForList property value.
See Also:
setDataNameForList(java.lang.String)

getDataToClear

public java.lang.String getDataToClear()
Gets the dataToClear property (java.lang.String) value.

Specified by:
getDataToClear in interface PanelActions
Returns:
The dataToClear property value.
See Also:
setDataToClear(java.lang.String)

getDataValue

public java.lang.Object getDataValue()
Gets the dataValue property (Object) value.

Specified by:
getDataValue in interface DataExchanger
Returns:
Object - the dataValue property value
See Also:
setDataValue(java.lang.Object)

getDataValueForList

public java.lang.Object getDataValueForList()
Gets the dataValueForList property (java.lang.Object) value.

Returns:
The dataValueForList property value.
See Also:
setDataValueForList(java.lang.Object)

getDSECoordinatedPanel

public DSECoordinatedPanel getDSECoordinatedPanel()
Gets the DSECoordinatedPanel where the component is placed

Specified by:
getDSECoordinatedPanel in interface PanelActions
Returns:
com.ibm.dse.gui.DSECoordinatedPanel

getErrorMessage

public java.lang.String getErrorMessage()
Gets the ErrorMessage property value from its formatters (if exists).

Specified by:
getErrorMessage in interface DataExchanger
Returns:
java.lang.String - the error message

getErrorMessage

public java.lang.String[] getErrorMessage(int row,
                                          int column)
Gets the errorMessage property value.

Parameters:
row - int, the row
column - int, the column
Returns:
String - the errorMessage property value(row,column)

getHelpID

public java.lang.String getHelpID()
Gets the helpID property (java.lang.String) value.

Returns:
String - the helpID property value
See Also:
setHelpID(java.lang.String)

getInError

public boolean getInError()
Gets the inError property (boolean) value.

Returns:
boolean - true if there are some cell in error.
See Also:
setInError(boolean, int, int)

getInError

public boolean getInError(int row,
                          int column)
Gets the inError property (boolean) value.

Parameters:
row - int, the row
column - int, the column
Returns:
boolean - true if cell (row,column) is in error
See Also:
setInError(boolean, int, int)

getIsEmpty

public boolean getIsEmpty()
Gets the Empty property (boolean) value.

Returns:
boolean - true if there are some cell empty
See Also:
#setInEmpty

getNavigationParameters

public NavigationParameters getNavigationParameters()
Gets the navigationParameters property (com.ibm.dse.gui.NavigationParameters) value.

Specified by:
getNavigationParameters in interface DataExchanger
Returns:
The navigationParameters property value.
See Also:
setNavigationParameters(com.ibm.dse.gui.NavigationParameters)

getRefreshList

protected boolean getRefreshList()
Gets the refeshList property (boolean) value.

Returns:
The refeshList property value.
See Also:
setRefreshList(boolean)

getSelectionRequired

public boolean getSelectionRequired()
Gets the selectionRequired property (boolean) value.

Returns:
The selectionRequired property value.
See Also:
setSelectionRequired(boolean)

getSourceValueForConversion

protected java.lang.String getSourceValueForConversion(int row,
                                                       int column)
Returns the cell value at row and column formatted with the formatter column.


getSourceValueForConversion2

protected java.lang.String getSourceValueForConversion2(java.lang.String text,
                                                        int column)
It receives a String formatted with the formatter column. It returns the same value formatted with column formatter


getSpPanel

public SpPanel getSpPanel()
Gets the SpPanel where the component is placed

Specified by:
getSpPanel in interface PanelActions
Returns:
com.ibm.dse.gui.SpPanel

getType

public java.lang.String getType()
Gets the type property (java.lang.String) value.

Specified by:
getType in interface DataExchanger
Returns:
The type property value.
See Also:
setType(java.lang.String)

getValueInEMUCurrency

public java.lang.Object getValueInEMUCurrency()
Gets the valueInEMUCurrency property (Object) value.

Specified by:
getValueInEMUCurrency in interface EuroConvertible
Returns:
Object - the valueInEMUCurrency property value
See Also:
setValueInEMUCurrency(java.lang.Object)

getValueInEMUCurrency

public java.lang.Object getValueInEMUCurrency(int row,
                                              int column)
Gets the valueInEMUCurrency property (Object) value.

Parameters:
row - int, the row.
column - int, the column
Returns:
Object - the valueInEMUCurrency property value(row,column)
See Also:
setValueInEMUCurrency(java.lang.Object)

getValueInEuros

public java.lang.Object getValueInEuros()
Gets the valueInEuros property (Object) value.

Specified by:
getValueInEuros in interface EuroConvertible
Returns:
Object - the valueInEuros property value
See Also:
setValueInEuros(java.lang.Object)

getValueInEuros

public java.lang.Object getValueInEuros(int row,
                                        int column)
Gets the valueInEuroCurrency property (Object) value.

Parameters:
row - int, the row
column - int, the column
Returns:
Object - the valueInEuroCurrency property value(row,column)
See Also:
#setValueInEurosCurrency

hasAlternativeDataName

public boolean hasAlternativeDataName()
Returns if the SpTable has alternative data name attribute.

Specified by:
hasAlternativeDataName in interface DataExchanger
Returns:
boolean - if it has alternative data name atribute

isInError

public boolean isInError()
Gets the inError property (boolean) value.

Specified by:
isInError in interface DataExchanger
Returns:
boolean - true if there are some cell in error
See Also:
setInError(boolean, int, int)

isKeyedValue

public boolean isKeyedValue()
if true this bean returns a composed data value.

Specified by:
isKeyedValue in interface DataExchanger
Returns:
boolean

isRequired

public boolean isRequired()
Returns if the SpTable is required or not.

Specified by:
isRequired in interface DataExchanger
Returns:
boolean - if it is required or not

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Handles events for the KeyListener interface.

Specified by:
keyPressed in interface GUIComponent
Parameters:
e - java.awt.event.KeyEvent

moveColumn

public void moveColumn(int column,
                       int targetColumn)
Moves the column column to the position currently occupied by the column targetColumn. The old column at targetColumn is shifted left or right to make room.

Parameters:
column - the index of column to be moved
targetColumn - the new index of the column

moveDataNameAndColumns

protected void moveDataNameAndColumns(VectorEditor dataNameAndColumns)

processComponentKeyEvent

protected void processComponentKeyEvent(java.awt.event.KeyEvent e)
It is called after interested listeners have managed the event. In case the event is due to an special key, the event is consumed.


processKeyEvent

protected void processKeyEvent(java.awt.event.KeyEvent e)
Processes key events occurring on this component.

Parameters:
e - KeyEvent

removeActionListener

public void removeActionListener(java.awt.event.ActionListener ae)
To comply with DataExchanger interface.

Specified by:
removeActionListener in interface DataExchanger
Parameters:
ae - java.awt.event.ActionEvent

removeCoordinatedEventListener

public void removeCoordinatedEventListener(CoordinatedEventListener newListener)
Removes a CoordinatedEventListener.

Specified by:
removeCoordinatedEventListener in interface DataExchanger
Parameters:
newListener - DataChangedListener

removeDataChangedListener

public void removeDataChangedListener(DataChangedListener newListener)
Deprecated. (use removeCoordinatedEventListener(CoordinatedEventListener newListener))

Removes a DataChangedListener.

Specified by:
removeDataChangedListener in interface DataExchanger
Parameters:
newListener - DataChangedListener

removeErrorMessageListener

public void removeErrorMessageListener(ErrorMessageListener newListener)
Removes an ErrorMessageListener.

Specified by:
removeErrorMessageListener in interface ErrorMessageGenerator
Parameters:
newListener - ErrorMessageListener

rowSelected

protected void rowSelected(javax.swing.event.ListSelectionEvent e)
A row in the table has been selected


setActivatedOkKey

public void setActivatedOkKey(boolean activatedOkKey)
Sets the activatedOkKey property (boolean) value.

Specified by:
setActivatedOkKey in interface GUIComponent
Parameters:
activatedOkKey - boolean, the new value for the property
See Also:
getActivatedOkKey()

setAllColors

public void setAllColors(ColorSettings allColors)
Sets the allColors property (com.ibm.dse.gui.ColorSettings) value.

Parameters:
allColors - ColorSettings, the new value for the property
See Also:
getAllColors()

setAlternativeDataName

public void setAlternativeDataName(java.lang.String alternativeDataName)
Sets the alternativeDataName property (java.lang.String) value.

Specified by:
setAlternativeDataName in interface DataExchanger
Parameters:
alternativeDataName - The new value for the property.
See Also:
getAlternativeDataName()

setBeansReactions

public void setBeansReactions(java.lang.String beansReactions)
Sets the beansReactions property (java.lang.String) value.

Parameters:
beansReactions - The new value for the property.
See Also:
getBeansReactions()

setComponentOrientation

public void setComponentOrientation(java.awt.ComponentOrientation o)
Set the language-sensitive orientation that is to be used to order the elements or text within this component. Language-sensitive LayoutManager and Component subclasses will use this property to determine how to lay out and draw components.

At construction time, a component's orientation is set to ComponentOrientation.UNKNOWN, indicating that it has not been specified explicitly. The UNKNOWN orientation behaves the same as ComponentOrientation.LEFT_TO_RIGHT.

To set the orientation of a single component, use this method. To apply a ResourceBundle's orientation to an entire component hierarchy, use java.awt.Window.applyResourceBundle.


setDataDirection

public void setDataDirection(java.lang.String dataDirection)
Sets the dataDirection property (java.lang.String) value.

Specified by:
setDataDirection in interface DataExchanger
Parameters:
dataDirection - String, the new value for the property. One of the following constants defined in DataDirectionEditor:BOTH_DIRECTION, INPUT_DIRECTION, OUTPUT_DIRECTION
See Also:
getDataDirection()

setDataName

public void setDataName(java.lang.String dataName)
Sets the dataName property (java.lang.String) value.

Specified by:
setDataName in interface DataExchanger
Parameters:
dataName - String, the new value for the property
See Also:
getDataName()

setDataNameAndColumns

public void setDataNameAndColumns(VectorEditor dataNameAndColumns)
Sets the dataNameAndColumns property (com.ibm.dse.gui.VectorEditor) value.

Parameters:
dataNameAndColumns - VectorEditor, the new value for the property
See Also:
getDataNameAndColumns()

setDataNameForList

public void setDataNameForList(java.lang.String dataNameForList)
Sets the dataNameForList property (java.lang.String) value.

Specified by:
setDataNameForList in interface DataExchangerWithList
Parameters:
dataNameForList - The new value for the property.
See Also:
getDataNameForList()

setDataToClear

public void setDataToClear(java.lang.String dataToClear)
Sets the dataToClear property (java.lang.String) value.

Parameters:
dataToClear - The new value for the property.
See Also:
getDataToClear()

setDataValue

public void setDataValue(java.lang.Object dataValue)
Sets the dataValue property (Object) value.

Specified by:
setDataValue in interface DataExchanger
Parameters:
dataValue - Object, the new value for the property
See Also:
getDataValue()

setDataValueForList

public void setDataValueForList(java.lang.Object dataValue)
Sets the dataValueForList property (Object) value.

Specified by:
setDataValueForList in interface DataExchangerWithList
Parameters:
dataValue - Object, the new value for the dataValueForList property
See Also:
#getDataValueForList

setDataValueFromHash

protected void setDataValueFromHash(Hashtable ht)
Sets the dataValue property value from a Hashtable.

See Also:
getDataValue()

setEmpty

public void setEmpty(boolean inEmpty,
                     int row,
                     int column)
Sets the empty property (boolean) value.

Parameters:
row - int, the row
column - int, the column
inEmpty - boolean, the new value for the property in cell(row,column)
See Also:
getIsEmpty()

setEnabled

public void setEnabled(boolean b)
Enables or disables the SpTable depending on the parameter.

Parameters:
b - boolean, that indicates if the SpTable must be enabled or not

setErrorMessage

protected void setErrorMessage(java.lang.String[] messageError,
                               int row,
                               int column)
Sets the errorMessage property (String[]) value.

Parameters:
row - int, the row
column - int, the column

setErrorMessage

protected void setErrorMessage(java.lang.String messageError,
                               int row,
                               int column)
Sets the errorMessage property (String) value.

Parameters:
row - int, the row
column - int, the column

setHelpID

public void setHelpID(java.lang.String helpID)
Sets the helpID property (java.lang.String) value.

Specified by:
setHelpID in interface DataExchanger
Parameters:
helpID - String, the new value for the property
See Also:
getHelpID()

setInError

public void setInError(boolean inError,
                       int row,
                       int column)
Sets the inError property (boolean) value.

Parameters:
row - int, the row
column - int,the column
inError - boolean, the new value for the property at row and column
See Also:
getInError()

setNavigationParameters

public void setNavigationParameters(NavigationParameters navigationParameters)
Sets the navigationParameters property (com.ibm.dse.gui.NavigationParameters) value.

Specified by:
setNavigationParameters in interface DataExchanger
Parameters:
navigationParameters - The new value for the property.
See Also:
getNavigationParameters()

setRefreshList

protected void setRefreshList(boolean refeshList)
Sets the refeshList property (boolean) value.

Parameters:
refeshList - The new value for the property.
See Also:
getRefreshList()

setRequired

public void setRequired(boolean required)
Sets the required property (boolean) value.

Specified by:
setRequired in interface DataExchanger
Parameters:
required - boolean, the new value for the property

setSelectionRequired

public void setSelectionRequired(boolean selectionRequired)
Sets the selectionRequired property (boolean) value.

Parameters:
selectionRequired - The new value for the property.
See Also:
getSelectionRequired()

setType

public void setType(java.lang.String type)
Sets the type property (java.lang.String) value.

Specified by:
setType in interface DataExchanger
Parameters:
type - The new value for the property.
See Also:
getType()

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
Sets the value for the cell at row and column. aValue is the new value.

Parameters:
aValue - Object, the new value
row - int, the row whose value is to be changed
column - int, the column whose value is to be changed

setValueInEMUCurrency

public void setValueInEMUCurrency(java.lang.Object valueInEMUCurrency)
Sets the valueInEMUCurrency property (java.lang.Object) value.

Specified by:
setValueInEMUCurrency in interface EuroConvertible
Parameters:
valueInEMUCurrency - Object, the new value for the property
See Also:
getValueInEMUCurrency()

setValueInEMUCurrency

public void setValueInEMUCurrency(java.lang.Object valueInEMUCurrency,
                                  int row,
                                  int column)
Sets the valueInEMUCurrency property (java.lang.Object) value.

Parameters:
valueInEMUCurrency - Object, the new value for the property at row and column.
row - int, the row
column - int, the column
See Also:
getValueInEMUCurrency()

setValueInEuros

public void setValueInEuros(java.lang.Object valueInEuros)
Sets the valueInEuros property (Object) value.

Specified by:
setValueInEuros in interface EuroConvertible
Parameters:
valueInEuros - Object, the new value for the property
See Also:
getValueInEuros()

setValueInEuros

public void setValueInEuros(java.lang.Object valueInEuro,
                            int row,
                            int column)
Sets the valueInEuros property (Object) value.

Parameters:
row - int, the row
column - int, the column
See Also:
getValueInEuros()

updateValues

protected void updateValues(java.lang.String ve,
                            java.lang.String vp,
                            int row,
                            int column)
Sets the valueInEuros and valueInEMUCurrency properties.


IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005