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:
Serializable,EventListener,CellEditor,AncestorListener,TableCellEditor
public class NumberCellEditor<E extends Number> extends AbstractCellEditor implements TableCellEditor, AncestorListener
Created on 11/23/14.- Since:
- 2.17
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected NumberEditornumberEditor-
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
-
Constructor Summary
Constructors Constructor Description NumberCellEditor(Class<E> type, boolean useSign)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidancestorAdded(AncestorEvent event)voidancestorMoved(AncestorEvent event)voidancestorRemoved(AncestorEvent event)EgetCellEditorValue()NumberEditorgetNumberEditor()ComponentgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)static TableCellEditornewFloatColumnEditor()static TableCellEditornewFloatColumnEditor(boolean useSign)static TableCellEditornewIntegerColumnEditor()static TableCellEditornewIntegerColumnEditor(boolean useSign)booleanstopCellEditing()-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell
-
-
-
-
Field Detail
-
numberEditor
protected final NumberEditor numberEditor
-
-
Method Detail
-
newFloatColumnEditor
public static TableCellEditor newFloatColumnEditor()
-
newFloatColumnEditor
public static TableCellEditor newFloatColumnEditor(boolean useSign)
-
newIntegerColumnEditor
public static TableCellEditor newIntegerColumnEditor()
-
newIntegerColumnEditor
public static TableCellEditor newIntegerColumnEditor(boolean useSign)
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
getNumberEditor
public NumberEditor getNumberEditor()
-
getCellEditorValue
public E getCellEditorValue()
- Specified by:
getCellEditorValuein interfaceCellEditor
-
ancestorAdded
public void ancestorAdded(AncestorEvent event)
- Specified by:
ancestorAddedin interfaceAncestorListener
-
ancestorRemoved
public void ancestorRemoved(AncestorEvent event)
- Specified by:
ancestorRemovedin interfaceAncestorListener
-
ancestorMoved
public void ancestorMoved(AncestorEvent event)
- Specified by:
ancestorMovedin interfaceAncestorListener
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfaceCellEditor- Overrides:
stopCellEditingin classAbstractCellEditor
-
-