public class NumberCellEditor<E extends Number> extends AbstractCellEditor implements TableCellEditor, FocusListener, AncestorListener
| Modifier and Type | Field and Description |
|---|---|
protected NumberEditor |
numberEditor |
changeEvent, listenerList| Constructor and Description |
|---|
NumberCellEditor(Class<E> type,
boolean useSign) |
| Modifier and Type | Method and Description |
|---|---|
void |
ancestorAdded(AncestorEvent event) |
void |
ancestorMoved(AncestorEvent event) |
void |
ancestorRemoved(AncestorEvent event) |
void |
focusGained(FocusEvent e) |
void |
focusLost(FocusEvent e) |
E |
getCellEditorValue() |
NumberEditor |
getNumberEditor() |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column) |
static TableCellEditor |
newFloatColumnEditor() |
static TableCellEditor |
newFloatColumnEditor(boolean useSign) |
static TableCellEditor |
newIntegerColumnEditor() |
static TableCellEditor |
newIntegerColumnEditor(boolean useSign) |
boolean |
stopCellEditing() |
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCellclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCellprotected final NumberEditor numberEditor
public static TableCellEditor newFloatColumnEditor()
public static TableCellEditor newFloatColumnEditor(boolean useSign)
public static TableCellEditor newIntegerColumnEditor()
public static TableCellEditor newIntegerColumnEditor(boolean useSign)
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
getTableCellEditorComponent in interface TableCellEditorpublic NumberEditor getNumberEditor()
public E getCellEditorValue()
getCellEditorValue in interface CellEditorpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenerpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenerpublic void ancestorAdded(AncestorEvent event)
ancestorAdded in interface AncestorListenerpublic void ancestorRemoved(AncestorEvent event)
ancestorRemoved in interface AncestorListenerpublic void ancestorMoved(AncestorEvent event)
ancestorMoved in interface AncestorListenerpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorstopCellEditing in class AbstractCellEditorCopyright © 2008–2021 Ultreia.io. All rights reserved.