Class ColorEditor.ColorTableCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.inductiveautomation.ignition.client.util.gui.color.ColorEditor.ColorTableCellEditor
- All Implemented Interfaces:
Serializable
,EventListener
,CellEditor
,ChangeListener
,TableCellEditor
- Enclosing class:
- ColorEditor
public static class ColorEditor.ColorTableCellEditor
extends AbstractCellEditor
implements TableCellEditor, ChangeListener
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected ColorEditor
protected int
protected Color
protected TableModel
protected Color
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionColorTableCellEditor
(boolean useNullColor) ColorTableCellEditor
(boolean useNullColor, List<String> colorNullableProperties) -
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) boolean
void
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, 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, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Field Details
-
editor
-
tableModel
-
row
protected int row -
col
protected int col -
unselectedBackground
-
selectedBackground
-
-
Constructor Details
-
ColorTableCellEditor
public ColorTableCellEditor() -
ColorTableCellEditor
public ColorTableCellEditor(boolean useNullColor) -
ColorTableCellEditor
- Parameters:
useNullColor
- Determines if the editor will support null colors.colorNullableProperties
- List of property names for which nullable colors will be used. This is only effected if useNullColor is set to true.
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
- Overrides:
isCellEditable
in classAbstractCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-