JIDE 3.5.15

com.jidesoft.grid
Class ColorCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by com.jidesoft.grid.AbstractJideCellEditor
          extended by com.jidesoft.grid.ContextSensitiveCellEditor
              extended by com.jidesoft.grid.ExComboBoxCellEditor
                  extended by com.jidesoft.grid.ColorCellEditor
All Implemented Interfaces:
ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, ActionListener, Serializable, EventListener, CellEditor, PopupMenuListener, TableCellEditor

public class ColorCellEditor
extends ExComboBoxCellEditor

CellEditor for Color. It uses ColorExComboBox to provide an editor for Color. You can override createColorComboBox() method to provide your own ColorExComboBox.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jidesoft.grid.ExComboBoxCellEditor
_comboBox
 
Fields inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
DEFAULT_CELL_EDITOR_BORDER
 
Fields inherited from class com.jidesoft.grid.AbstractJideCellEditor
_clickCountToStart
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ColorCellEditor()
          Creates a ColorCellEditor.
 
Method Summary
protected  ColorExComboBox createColorComboBox()
          Creates the color combobox used by this cell editor.
 ExComboBox createExComboBox()
          Creates the color combobox used by this cell editor.
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 
Methods inherited from class com.jidesoft.grid.ExComboBoxCellEditor
actionPerformed, createExComboBox, customizeExComboBox, getCellEditorValue, getComboBox, isEditorStyleSupported, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, setCellEditorValue, setConverter, setType, stopCellEditing
 
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setConverterContext, setEditorContext, setEditorStyle, setUseConverterContext
 
Methods inherited from class com.jidesoft.grid.AbstractJideCellEditor
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

ColorCellEditor

public ColorCellEditor()
Creates a ColorCellEditor.

Method Detail

createExComboBox

public ExComboBox createExComboBox()
Creates the color combobox used by this cell editor.

Specified by:
createExComboBox in class ExComboBoxCellEditor
Returns:
the color combobox.

createColorComboBox

protected ColorExComboBox createColorComboBox()
Creates the color combobox used by this cell editor.

Returns:
the color combobox.

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor
Overrides:
getTableCellEditorComponent in class ExComboBoxCellEditor

JIDE 3.5.15