Package hec.ui
Class TristateCheckBoxCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
hec.ui.TristateCheckBoxCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
Author Shannon Larson
The Class TristateCheckBoxCellEditor
This Editor is intended to be used in JTable cells. It specifically references a table in the ItemStateChange method.
If the table cell is not a row of column header, the check box will behave like a regular check box (will not use the third state)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new tristate check box cell editor.Instantiates a new TristateCheckBoxCellEditor. -
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) boolean
boolean
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, 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, stopCellEditing
-
Constructor Details
-
TristateCheckBoxCellEditor
public TristateCheckBoxCellEditor()Instantiates a new tristate check box cell editor. -
TristateCheckBoxCellEditor
Instantiates a new TristateCheckBoxCellEditor.- Parameters:
box
- the box
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
- Overrides:
isCellEditable
in classAbstractCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCell
in interfaceCellEditor
- Overrides:
shouldSelectCell
in classAbstractCellEditor
-