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) booleanbooleanMethods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, 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, 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:
getTableCellEditorComponentin interfaceTableCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor
-
shouldSelectCell
- Specified by:
shouldSelectCellin interfaceCellEditor- Overrides:
shouldSelectCellin classAbstractCellEditor
-