fr.reseaumexico.editor.factorValue
Class FactorValueCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by fr.reseaumexico.editor.factorValue.FactorValueCellEditor
All Implemented Interfaces:
FocusListener, Serializable, EventListener, CellEditor, TableCellEditor

public class FactorValueCellEditor
extends AbstractCellEditor
implements TableCellEditor, FocusListener

Cell editor for factor values

Since:
0.1
Author:
sletellier
See Also:
TableCellEditor, Serialized Form

Field Summary
protected  Object currentValue
           
protected  JTextField defaultInlineEditor
           
protected  Factor factor
           
protected  FactorValueEditorFactory factory
           
protected  boolean isEditing
           
protected  FactorValueEditorFactory.FactorValueCellEditor specificEditor
           
protected  JTable table
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
FactorValueCellEditor(jaxx.runtime.JAXXContext context)
           
 
Method Summary
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
 Object 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

table

protected JTable table

factor

protected Factor factor

currentValue

protected Object currentValue

defaultInlineEditor

protected JTextField defaultInlineEditor

specificEditor

protected FactorValueEditorFactory.FactorValueCellEditor specificEditor

isEditing

protected boolean isEditing

factory

protected FactorValueEditorFactory factory
Constructor Detail

FactorValueCellEditor

public FactorValueCellEditor(jaxx.runtime.JAXXContext context)
Method Detail

getCellEditorValue

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

getTableCellEditorComponent

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

focusGained

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

focusLost

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


Copyright © 2011-2012 Code Lutin. All Rights Reserved.