public abstract class CellEditor extends JComponent implements TableCellEditor, FormComponent
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static Color |
backgroundColor |
protected int |
clickNumber |
protected String |
column |
static String |
COLUMN_PARAMETER |
protected DataComponent |
currentEditor |
static boolean |
DEBUG_RENDERER |
static String |
EDIT_CELL_COMMAND |
protected JComponent |
editor |
protected DataField |
field |
static Border |
focusBorder |
static Color |
focusBorderColor |
static Font |
font |
static Color |
fontColor |
protected Vector |
listeners |
static boolean |
selectAllFocusGained |
protected Object |
value |
accessibleContext, 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 |
|---|
CellEditor(Object col,
DataField c) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCellEditorListener(CellEditorListener l) |
void |
addFocusListener(FocusListener f) |
void |
addKeyListener(KeyListener k) |
void |
cancelCellEditing() |
protected void |
fireEditingCanceled() |
protected void |
fireEditingStopped() |
Object |
getCellEditorValue() |
Object |
getConstraints(LayoutManager l)
Description method to return the
constraints component to
place correctly in parent container. |
Border |
getDefaultFocusBorder() |
Font |
getEditorFont(JTable table) |
int |
getSQLDataType() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
void |
init(Hashtable h)
Main method to init an object from parameters
hashtable. |
protected void |
installKeyListener() |
boolean |
isCellEditable(EventObject anEvent) |
void |
removeCellEditorListener(CellEditorListener l) |
void |
requestFocus() |
void |
setComponentLocale(Locale l) |
void |
setEnabled(boolean enabled)
Description method to set enabled or not the component according the
boolean condition in parameter.
|
void |
setResourceBundle(ResourceBundle res)
Sets the language resource bundle.
|
void |
setVisible(boolean visible)
Description method to set visible or not the component according the
boolean condition in parameter.
|
boolean |
shouldSelectCell(EventObject e) |
boolean |
stopCellEditing() |
addAncestorListener, 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, waitisEnabledpublic static boolean selectAllFocusGained
public static boolean DEBUG_RENDERER
public static String COLUMN_PARAMETER
public static final String EDIT_CELL_COMMAND
protected DataField field
protected Object value
protected int clickNumber
protected DataComponent currentEditor
protected Vector listeners
protected JComponent editor
protected String column
public static Color focusBorderColor
public static Border focusBorder
public static Font font
public static Color fontColor
public static Color backgroundColor
protected void installKeyListener()
public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorpublic boolean shouldSelectCell(EventObject e)
shouldSelectCell in interface CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorpublic void addCellEditorListener(CellEditorListener l)
addCellEditorListener in interface CellEditorpublic void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener in interface CellEditorprotected void fireEditingStopped()
protected void fireEditingCanceled()
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorpublic Border getDefaultFocusBorder()
public void addKeyListener(KeyListener k)
addKeyListener in class Componentpublic void addFocusListener(FocusListener f)
addFocusListener in class Componentpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setVisible(boolean visible)
FormComponentsetVisible in interface FormComponentsetVisible in class JComponentvisible - the visibility conditionpublic Object getConstraints(LayoutManager l)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentl - the parent container referencepublic void init(Hashtable h)
FormComponenthashtable.
init in interface FormComponenth - the hashtable with pairs (Key,Value). For example:
| Key | Value |
| align | center |
| attr | attribute |
| ... | ... |
public void setEnabled(boolean enabled)
FormComponentsetEnabled in interface FormComponentsetEnabled in class JComponentenabled - the enabled conditionpublic void requestFocus()
requestFocus in class JComponentpublic int getSQLDataType()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.