butler.swing.util
Class ButlerCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by butler.swing.util.ButlerCellEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor

public class ButlerCellEditor
extends javax.swing.AbstractCellEditor

Adapter class for javax.swing.CellEditor and butler.swing.util.ValueEditor.

Author:
Fredrik Bertilsson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ButlerCellEditor(Datatype datatype)
           
ButlerCellEditor(ValueEditor editor)
           
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 javax.swing.JComponent getComponent()
          Returns the physical component.
 ValueEditor getValueEditor()
           
 void setValue(java.lang.Object value)
           
protected  void stateChanged(javax.swing.event.ChangeEvent event)
           
 boolean stopCellEditing()
           
 
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
 

Constructor Detail

ButlerCellEditor

public ButlerCellEditor(ValueEditor editor)
                 throws java.lang.Exception
Throws:
java.lang.Exception

ButlerCellEditor

public ButlerCellEditor(Datatype datatype)
Method Detail

getComponent

public javax.swing.JComponent getComponent()
Returns the physical component.


getCellEditorValue

public java.lang.Object getCellEditorValue()

setValue

public void setValue(java.lang.Object value)

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface javax.swing.CellEditor
Overrides:
stopCellEditing in class javax.swing.AbstractCellEditor

getValueEditor

public ValueEditor getValueEditor()
                           throws java.lang.Exception
Throws:
java.lang.Exception

stateChanged

protected void stateChanged(javax.swing.event.ChangeEvent event)