Class ColorEditor
java.lang.Object
javax.swing.AbstractCellEditor
org.bidib.wizard.mvc.common.view.table.ColorEditor
- All Implemented Interfaces:
ActionListener,Serializable,EventListener,CellEditor,TableCellEditor
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) bytereduceColor(Color color) Reduce a 32-bit RGB color to a 8-bit 3-3-2 color.voidsetColorChooserValueUpdate(ColorEditor.ColorChooserValueUpdate chooserValueUpdate) Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Field Details
-
EDIT
- See Also:
-
OK
- See Also:
-
-
Constructor Details
-
ColorEditor
public ColorEditor()
-
-
Method Details
-
setColorChooserValueUpdate
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
reduceColor
Reduce a 32-bit RGB color to a 8-bit 3-3-2 color.- Parameters:
color- the 32-bit RGB color- Returns:
- the 8-bit 3-3-2 color
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-