at.tuwien.ifs.commons.gui.controls.swing.table
Class ColorCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
at.tuwien.ifs.commons.gui.controls.swing.table.ColorCellEditor
- All Implemented Interfaces:
- ActionListener, Serializable, EventListener, CellEditor, TableCellEditor
public class ColorCellEditor
- extends AbstractCellEditor
- implements TableCellEditor, ActionListener
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
currentColor
Color currentColor
button
JButton button
colorChooser
JColorChooser colorChooser
dialog
JDialog dialog
EDIT
protected static final String EDIT
- See Also:
- Constant Field Values
ColorCellEditor
public ColorCellEditor()
actionPerformed
public void actionPerformed(ActionEvent e)
- Handles events from the editor button and from the dialog's OK button.
- Specified by:
actionPerformed
in interface ActionListener
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface CellEditor
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor