com.nqadmin.swingSet.formatting
Class SSImageField

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.nqadmin.swingSet.formatting.SSImageField
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.KeyListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.sql.RowSetListener

public class SSImageField
extends javax.swing.JPanel
implements javax.sql.RowSetListener, java.awt.event.KeyListener, java.awt.event.ComponentListener

Author:
Diego Gil
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces 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.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
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
SSImageField()
          Creates a new instance of SSImageField
 
Method Summary
 void bind(SSRowSet _sSRowSet, java.lang.String _columnName)
          Sets the SSRowSet and column name to which the component is to be bound.
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 void cursorMoved(javax.sql.RowSetEvent event)
           
 java.lang.String getColumnName()
          Returns the column name to which the component is bound to
 SSDataNavigator getNavigator()
          Deprecated.  
 SSRowSet getRowSet()
          Deprecated.  
 SSDataNavigator getSSDataNavigator()
          Returns the SSDataNavigator object being used.
 SSRowSet getSSRowSet()
          SSRowSet object being used to get/set the bound column value
 void keyPressed(java.awt.event.KeyEvent e)
          Catch severals keys, to implement some forms functionality (To be done).
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void rowChanged(javax.sql.RowSetEvent event)
           
 void rowSetChanged(javax.sql.RowSetEvent event)
           
 void setColumnName(java.lang.String columnName)
          Column name in the SSRowSet to which this component will be bound to
 void setNavigator(SSDataNavigator navigator)
          Deprecated.  
 void setRowSet(SSRowSet rowset)
          Deprecated.  
 void setSSDataNavigator(SSDataNavigator navigator)
          Sets the SSDataNavigator being used to navigate the SSRowSet This is needed only if you want to include the function keys as short cuts to perform operations on the DataNavigator like saving the current row/ undo changes/ delete current row.
 void setSSRowSet(SSRowSet rowset)
          Sets the SSRowSet object to be used to get/set the value of the bound column
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, 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

SSImageField

public SSImageField()
Creates a new instance of SSImageField

Method Detail

setColumnName

public void setColumnName(java.lang.String columnName)
Column name in the SSRowSet to which this component will be bound to

Parameters:
columnName - - column name in the SSRowSet to which this component will be bound to

getColumnName

public java.lang.String getColumnName()
Returns the column name to which the component is bound to

Returns:
- returns the column name to which the component is bound to

setRowSet

public void setRowSet(SSRowSet rowset)
Deprecated. 

Sets the SSRowSet object to be used to get/set the value of the bound column

Parameters:
rowset - - SSRowSet object to be used to get/set the value of the bound column
See Also:
setSSRowSet(SSRowSet)

setSSRowSet

public void setSSRowSet(SSRowSet rowset)
Sets the SSRowSet object to be used to get/set the value of the bound column

Parameters:
rowset - - SSRowSet object to be used to get/set the value of the bound column

getRowSet

public SSRowSet getRowSet()
Deprecated. 

SSRowSet object being used to get/set the bound column value

Returns:
- returns the SSRowSet object being used to get/set the bound column value
See Also:
getSSRowSet()

getSSRowSet

public SSRowSet getSSRowSet()
SSRowSet object being used to get/set the bound column value

Returns:
- returns the SSRowSet object being used to get/set the bound column value

setNavigator

public void setNavigator(SSDataNavigator navigator)
Deprecated. 

Sets the SSDataNavigator being used to navigate the SSRowSet This is needed only if you want to include the function keys as short cuts to perform operations on the DataNavigator like saving the current row/ undo changes/ delete current row. The functionality for this is not yet finalized so try to avoid using this

Parameters:
navigator - - SSDataNavigator being used to navigate the SSRowSet
See Also:
setSSDataNavigator(SSDataNavigator)

getNavigator

public SSDataNavigator getNavigator()
Deprecated. 

Returns the SSDataNavigator object being used.

Returns:
returns the SSDataNavigator object being used.
See Also:
getSSDataNavigator()

setSSDataNavigator

public void setSSDataNavigator(SSDataNavigator navigator)
Sets the SSDataNavigator being used to navigate the SSRowSet This is needed only if you want to include the function keys as short cuts to perform operations on the DataNavigator like saving the current row/ undo changes/ delete current row. The functionality for this is not yet finalized so try to avoid using this

Parameters:
navigator - - SSDataNavigator being used to navigate the SSRowSet

getSSDataNavigator

public SSDataNavigator getSSDataNavigator()
Returns the SSDataNavigator object being used.

Returns:
returns the SSDataNavigator object being used.

bind

public void bind(SSRowSet _sSRowSet,
                 java.lang.String _columnName)
Sets the SSRowSet and column name to which the component is to be bound.

Parameters:
_sSRowSet - datasource to be used.
_columnName - Name of the column to which this check box should be bound

rowSetChanged

public void rowSetChanged(javax.sql.RowSetEvent event)
Specified by:
rowSetChanged in interface javax.sql.RowSetListener

rowChanged

public void rowChanged(javax.sql.RowSetEvent event)
Specified by:
rowChanged in interface javax.sql.RowSetListener

cursorMoved

public void cursorMoved(javax.sql.RowSetEvent event)
Specified by:
cursorMoved in interface javax.sql.RowSetListener

keyTyped

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

keyReleased

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

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Catch severals keys, to implement some forms functionality (To be done).

Specified by:
keyPressed in interface java.awt.event.KeyListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener