jbc.grid
Class JbcCellEditorDecimalFormat
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
jbc.grid.JbcCellEditorDecimalFormat
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
public class JbcCellEditorDecimalFormat
- extends javax.swing.DefaultCellEditor
This class implements a JTextField as an editor and allows to edit values
in a table cell. This class uses the ClickCountToStart value provided by
JbcGridTable as a default value. This CellEditor takes the alternate background
color feature into account. This class is extended from DefaultCellEditor.
This editor verifies entry characters. It accepts any 0 to 9 digit,
one decimal separator, one - sign.
- Author:
- Copyright © 1999-2004, JBC. All Rights Reserved.
Licensed Materials - Property of JBC.
- See Also:
- Serialized Form
Constructor Summary |
JbcCellEditorDecimalFormat()
Creates a JbcCellEditorDecimalFormat
using the default decimal value (2) and the symbols for the default locale. |
JbcCellEditorDecimalFormat(int decimals)
Creates a JbcCellEditorDecimalFormat
using the given decimal value and the symbols for the default locale. |
Methods inherited from class javax.swing.DefaultCellEditor |
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
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 |
Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
JbcCellEditorDecimalFormat
public JbcCellEditorDecimalFormat()
- Creates a
JbcCellEditorDecimalFormat
using the default decimal value (2) and the symbols for the default locale.
- See Also:
DecimalFormat
JbcCellEditorDecimalFormat
public JbcCellEditorDecimalFormat(int decimals)
- Creates a
JbcCellEditorDecimalFormat
using the given decimal value and the symbols for the default locale.
- Parameters:
decimals
- The number of decimals.- See Also:
DecimalFormat
JBCSolutions - Jbcgrid v1.6