Package likelihoodDetectionModule
Class TreeTable.DoubleEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
likelihoodDetectionModule.TreeTable.DoubleEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
,TreeCellEditor
- Enclosing class:
TreeTable
The Class DoubleEditor is used by the TreeTable for editing any value that has
a real number representation. It allows the implementation to supply a min and
max value for the number, and uses a custom JFormattedTextField component
internally to do the validation of the user input.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) boolean
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
-
Constructor Details
-
DoubleEditor
public DoubleEditor(double min, double max) Instantiates a new double editor.- Parameters:
min
- the minmax
- the max
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
- Overrides:
getTableCellEditorComponent
in classDefaultCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditing
in interfaceCellEditor
- Overrides:
stopCellEditing
in classDefaultCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
- Overrides:
getCellEditorValue
in classDefaultCellEditor
-