jaxx.runtime.swing.editor.cell
Class NumberCellEditor<E extends Number>

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by jaxx.runtime.swing.editor.cell.NumberCellEditor<E>
All Implemented Interfaces:
FocusListener, Serializable, EventListener, CellEditor, AncestorListener, TableCellEditor

public class NumberCellEditor<E extends Number>
extends AbstractCellEditor
implements TableCellEditor, FocusListener, AncestorListener

Author:
sletellier
See Also:
Serialized Form

Field Summary
protected  NumberEditor numberEditor
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
NumberCellEditor(Class<E> type, boolean useSign)
          constructor
 
Method Summary
 void ancestorAdded(AncestorEvent event)
           
 void ancestorMoved(AncestorEvent event)
           
 void ancestorRemoved(AncestorEvent event)
           
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
 E getCellEditorValue()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, stopCellEditing
 

Field Detail

numberEditor

protected final NumberEditor numberEditor
Constructor Detail

NumberCellEditor

public NumberCellEditor(Class<E> type,
                        boolean useSign)
constructor

Method Detail

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor

getCellEditorValue

public E getCellEditorValue()
Specified by:
getCellEditorValue in interface CellEditor

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener

ancestorAdded

public void ancestorAdded(AncestorEvent event)
Specified by:
ancestorAdded in interface AncestorListener

ancestorRemoved

public void ancestorRemoved(AncestorEvent event)
Specified by:
ancestorRemoved in interface AncestorListener

ancestorMoved

public void ancestorMoved(AncestorEvent event)
Specified by:
ancestorMoved in interface AncestorListener


Copyright © 2008-2012 CodeLutin. All Rights Reserved.