smile.swing.table
Class DoubleCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- smile.swing.table.DoubleCellEditor
-
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
public class DoubleCellEditor extends javax.swing.DefaultCellEditorImplements a cell editor that uses a formatted text field to edit Double values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DoubleCellEditor()Constructor.DoubleCellEditor(double min, double max)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.ObjectgetCellEditorValue()static DoubleCellEditorgetInstance()Returns the default instance.java.awt.ComponentgetTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)booleanstopCellEditing()-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
-
-
-
-
Constructor Detail
-
DoubleCellEditor
public DoubleCellEditor()
Constructor.
-
DoubleCellEditor
public DoubleCellEditor(double min, double max)Constructor.- Parameters:
min- the minimum of valid values.max- the maximum of valid values.
-
-
Method Detail
-
getInstance
public static DoubleCellEditor getInstance()
Returns the default instance.
-
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponentin interfacejavax.swing.table.TableCellEditor- Overrides:
getTableCellEditorComponentin classjavax.swing.DefaultCellEditor
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfacejavax.swing.CellEditor- Overrides:
getCellEditorValuein classjavax.swing.DefaultCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfacejavax.swing.CellEditor- Overrides:
stopCellEditingin classjavax.swing.DefaultCellEditor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG