Package org.nuiton.jaxx.widgets.number
Class NumberCellEditor<E extends Number>
java.lang.Object
javax.swing.AbstractCellEditor
org.nuiton.jaxx.widgets.number.NumberCellEditor<E>
- All Implemented Interfaces:
FocusListener,Serializable,EventListener,CellEditor,AncestorListener,TableCellEditor
public class NumberCellEditor<E extends Number> extends AbstractCellEditor implements TableCellEditor, FocusListener, AncestorListener
Created on 11/23/14.
- Since:
- 2.17
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected NumberEditornumberEditor -
Constructor Summary
Constructors Constructor Description NumberCellEditor(Class<E> type, boolean useSign)constructor -
Method Summary
Modifier and Type Method Description voidancestorAdded(AncestorEvent event)voidancestorMoved(AncestorEvent event)voidancestorRemoved(AncestorEvent event)voidfocusGained(FocusEvent e)voidfocusLost(FocusEvent e)EgetCellEditorValue()NumberEditorgetNumberEditor()ComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)booleanstopCellEditing()Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCellMethods 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, isCellEditable, removeCellEditorListener, shouldSelectCell
-
Field Details
-
Constructor Details
-
NumberCellEditor
constructor
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
getNumberEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
focusGained
- Specified by:
focusGainedin interfaceFocusListener
-
focusLost
- Specified by:
focusLostin interfaceFocusListener
-
ancestorAdded
- Specified by:
ancestorAddedin interfaceAncestorListener
-
ancestorRemoved
- Specified by:
ancestorRemovedin interfaceAncestorListener
-
ancestorMoved
- Specified by:
ancestorMovedin interfaceAncestorListener
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor- Overrides:
stopCellEditingin classAbstractCellEditor
-