Ontimize 5.2072EN

com.ontimize.gui.table
Class ComboReferenceCellEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended bycom.ontimize.gui.table.CellEditor
                  extended bycom.ontimize.gui.table.ComboReferenceCellEditor
All Implemented Interfaces:
AccessForm, CachedComponent, javax.swing.CellEditor, FormComponent, java.awt.image.ImageObserver, Internationalization, ISetReferenceValues, java.awt.MenuContainer, ReferenceComponent, java.io.Serializable, javax.swing.table.TableCellEditor

public class ComboReferenceCellEditor
extends CellEditor
implements ReferenceComponent, AccessForm, CachedComponent, ISetReferenceValues

See Also:
Serialized Form

Nested Class Summary
protected static class ComboReferenceCellEditor.ExtCampoComboRef
           
 
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
protected  java.util.Hashtable colsSetTypes
           
 
Fields inherited from class com.ontimize.gui.table.CellEditor
backgroundColor, clickNumber, column, COLUMN_PARAMETER, currentEditor, DEBUG_RENDERER, EDIT_CELL_COMMAND, editor, field, focusBorder, focusBorderColor, font, fontColor, listeners, value
 
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 com.ontimize.gui.field.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ComboReferenceCellEditor(java.util.Hashtable parameters)
           
 
Method Summary
 java.util.Vector getAttributes()
           
 java.lang.String getEntity()
           
protected  java.lang.Object getParentKeyValue(java.lang.String p)
           
 java.util.List getSetColumns()
          Gets the list of columns to update in the table
 java.util.Hashtable getSetData(boolean useNullValues)
          Returns an object with the values configured in the 'onsetvalueset' parameter.
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 void setCacheManager(CacheManager m)
           
 void setParentForm(Form f)
          Method declaration to set the form that contains the component.
 void setReferenceLocator(EntityReferenceLocator locator)
          Establishes the reference locator that will be used by component.
 
Methods inherited from class com.ontimize.gui.table.CellEditor
addCellEditorListener, addFocusListener, addKeyListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorValue, getConstraints, getDefaultFocusBorder, getEditorFont, getSQLDataType, getTextsToTranslate, init, installKeyListener, isCellEditable, removeCellEditorListener, requestFocus, setComponentLocale, setEnabled, setResourceBundle, setVisible, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, 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, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, 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, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, 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, 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
 
Methods inherited from interface com.ontimize.gui.field.FormComponent
getConstraints, init, isEnabled, setEnabled, setVisible
 
Methods inherited from interface com.ontimize.gui.i18n.Internationalization
getTextsToTranslate, setComponentLocale, setResourceBundle
 

Field Detail

colsSetTypes

protected java.util.Hashtable colsSetTypes
Constructor Detail

ComboReferenceCellEditor

public ComboReferenceCellEditor(java.util.Hashtable parameters)
Method Detail

getEntity

public java.lang.String getEntity()
Specified by:
getEntity in interface CachedComponent

getAttributes

public java.util.Vector getAttributes()
Specified by:
getAttributes in interface CachedComponent

setCacheManager

public void setCacheManager(CacheManager m)
Specified by:
setCacheManager in interface CachedComponent

getParentKeyValue

protected java.lang.Object getParentKeyValue(java.lang.String p)

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int column)
Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Overrides:
getTableCellEditorComponent in class CellEditor

setReferenceLocator

public void setReferenceLocator(EntityReferenceLocator locator)
Description copied from interface: ReferenceComponent
Establishes the reference locator that will be used by component. This method is automatically called by Form when it is being loaded.

Specified by:
setReferenceLocator in interface ReferenceComponent
Parameters:
locator - a reference locator to set in component

setParentForm

public void setParentForm(Form f)
Description copied from interface: AccessForm
Method declaration to set the form that contains the component. This method must be called automatically during the form building.

Specified by:
setParentForm in interface AccessForm
Parameters:
f - the form reference

getSetColumns

public java.util.List getSetColumns()
Description copied from interface: ISetReferenceValues
Gets the list of columns to update in the table

Specified by:
getSetColumns in interface ISetReferenceValues
Returns:

getSetData

public java.util.Hashtable getSetData(boolean useNullValues)
Description copied from interface: ISetReferenceValues
Returns an object with the values configured in the 'onsetvalueset' parameter. This method will be call when table execute an update or insert operations against the database.

Specified by:
getSetData in interface ISetReferenceValues
Parameters:
useNullValues - If this parameter is true then the method must return a NullValue object if the column to set is null. If this parameter is false then the column that is null is not included in the result
Returns:

Ontimize