Class ColorEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- org.openjump.core.rasterimage.styler.ui.ColorEditor
-
- All Implemented Interfaces:
ActionListener
,Serializable
,EventListener
,CellEditor
,TableCellEditor
public class ColorEditor extends AbstractCellEditor implements TableCellEditor, ActionListener
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
EDIT
-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description ColorEditor(Component parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
Handles events from the editor button and from the jDialog_ColorPicker's OK button.Object
getCellEditorValue()
Component
getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
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, stopCellEditing
-
-
-
-
Field Detail
-
EDIT
protected static final String EDIT
-
-
Constructor Detail
-
ColorEditor
public ColorEditor(Component parent)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent e)
Handles events from the editor button and from the jDialog_ColorPicker's OK button.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
e
- the ActionEvent
-
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
-