public class ReferenceCellEditor extends StringCellEditor implements ReferenceComponent, AccessForm, ISetReferenceValues
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected boolean |
addAsterisk |
protected String |
ASTERISK |
protected JButton |
buttonOK |
protected boolean |
codeNumber |
protected int |
codeNumberClass
The code number class.
|
protected Vector |
colsSet |
protected Hashtable |
colsSetTypes |
protected Vector |
columns |
protected EntityReferenceLocator |
locator |
protected Form |
parentForm |
protected ResourceBundle |
resources |
protected Table |
table |
protected JDialog |
tableWindow |
protected Hashtable |
valuesKeys |
backgroundColor, clickNumber, column, COLUMN_PARAMETER, currentEditor, DEBUG_RENDERER, EDIT_CELL_COMMAND, editor, field, focusBorder, focusBorderColor, font, fontColor, listeners, selectAllFocusGained, valueaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
ReferenceCellEditor(Hashtable parameters)
Configuration parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCellEditing() |
protected void |
createTableWindow() |
Vector |
getColumnsToSet() |
Vector |
getKeys() |
protected Object |
getParentKeyValue(String parentkey) |
List |
getSetColumns()
Gets the list of columns to update in the table
|
Hashtable |
getSetData(boolean useNullValues)
Returns an object with the values configured in the 'onsetvalueset'
parameter.
|
int |
getSQLDataType() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
protected Object |
getTypedInnerValue(Object s)
Obtains the typed value from parameter.
|
Hashtable |
getValuesKeys() |
protected void |
processingAction(boolean oneResultIsNotShown) |
void |
setParentForm(Form parentForm)
Method declaration to set the form that contains the component.
|
void |
setReferenceLocator(EntityReferenceLocator locator)
Establishes the reference locator that will be used by component.
|
void |
setResourceBundle(ResourceBundle resources)
Sets the language resource bundle.
|
protected void |
showTableWindow() |
boolean |
stopCellEditing() |
initializeDataFieldaddCellEditorListener, addFocusListener, addKeyListener, fireEditingCanceled, fireEditingStopped, getCellEditorValue, getConstraints, getDefaultFocusBorder, getEditorFont, getTextsToTranslate, init, installKeyListener, isCellEditable, removeCellEditorListener, requestFocus, setComponentLocale, setEnabled, setVisible, shouldSelectCelladdAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update, updateUIadd, 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, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, 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, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConstraints, init, isEnabled, setEnabled, setVisiblegetTextsToTranslate, setComponentLocaleprotected final String ASTERISK
protected boolean addAsterisk
protected JButton buttonOK
protected EntityReferenceLocator locator
protected Form parentForm
protected Table table
protected JDialog tableWindow
protected ResourceBundle resources
protected Vector columns
protected Hashtable valuesKeys
protected Vector colsSet
protected Hashtable colsSetTypes
protected boolean codeNumber
protected int codeNumberClass
public ReferenceCellEditor(Hashtable parameters)
parameters - the hashtable with parameters
| attribute | values | default | required | meaning |
| addasterisk | yes/no | no | no | Indicates when it is needed to add asterisk characters at the beginning and at the end to include in the query. |
| search | the editing column | no | Column to search by. | |
| set | table keys | no | Columns to set in the edited table. |
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorgetTableCellEditorComponent in class StringCellEditorpublic Vector getKeys()
public Vector getColumnsToSet()
public boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorcancelCellEditing in class CellEditorpublic void setReferenceLocator(EntityReferenceLocator locator)
ReferenceComponentsetReferenceLocator in interface ReferenceComponentlocator - a reference locator to set in componentpublic void setParentForm(Form parentForm)
AccessFormsetParentForm in interface AccessFormparentForm - the form referenceprotected void showTableWindow()
protected void createTableWindow()
public void setResourceBundle(ResourceBundle resources)
InternationalizationsetResourceBundle in interface InternationalizationsetResourceBundle in class CellEditorresources - the new language bundle.public Hashtable getValuesKeys()
public Hashtable getSetData(boolean useNullValues)
ISetReferenceValuesgetSetData in interface ISetReferenceValuesuseNullValues - 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 resultpublic List getSetColumns()
ISetReferenceValuesgetSetColumns in interface ISetReferenceValuesprotected void processingAction(boolean oneResultIsNotShown)
public int getSQLDataType()
getSQLDataType in class CellEditorCopyright © 2016 Imatia Innovation S.L.. All rights reserved.