com.eliad.model.defaults
Class DefaultGridCellEditor.EditorDelegate

java.lang.Object
  |
  +--com.eliad.model.defaults.DefaultGridCellEditor.EditorDelegate

protected class DefaultGridCellEditor.EditorDelegate
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.Object value
           
 
Constructor Summary
protected DefaultGridCellEditor.EditorDelegate()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invoked when an action occurs.
 void cancelCellEditing()
          Tells the editor to cancel editing and not to accept any partially edited value.
 java.lang.Object getCellEditorValue()
          Returns the value of the editing component as an Object
 boolean isCellEditable(java.util.EventObject anEvent)
          Asks the editor if it can start editing using anEvent.
 void itemStateChanged(java.awt.event.ItemEvent e)
          Invoked when an item has been selected or deselected.
 void setValue(java.lang.Object value)
          Sets the value for the editing component as an Object
 boolean shouldSelectCell(java.util.EventObject anEvent)
          Asks the editor whether the editing cell sould be selected or not using anEvent
 boolean stopCellEditing()
          Tells the editor to stop editing and to accept any partially edited value as the value of the editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected java.lang.Object value
Constructor Detail

DefaultGridCellEditor.EditorDelegate

protected DefaultGridCellEditor.EditorDelegate()
Method Detail

getCellEditorValue

public java.lang.Object getCellEditorValue()
Returns the value of the editing component as an Object

setValue

public void setValue(java.lang.Object value)
Sets the value for the editing component as an Object
Parameters:
value - an Object

isCellEditable

public boolean isCellEditable(java.util.EventObject anEvent)
Asks the editor if it can start editing using anEvent.
Returns:
true

shouldSelectCell

public boolean shouldSelectCell(java.util.EventObject anEvent)
Asks the editor whether the editing cell sould be selected or not using anEvent
Parameters:
e - an event object
Returns:
true

stopCellEditing

public boolean stopCellEditing()
Tells the editor to stop editing and to accept any partially edited value as the value of the editor. Calls fireEditingStopped and returns true.
Returns:
true

cancelCellEditing

public void cancelCellEditing()
Tells the editor to cancel editing and not to accept any partially edited value. Calls fireEditingCanceled.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Invoked when an item has been selected or deselected.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener