org.tridas.io.gui.components
Class DefaultFieldEditor.AbstractEditorDelegate

java.lang.Object
  extended by org.tridas.io.gui.components.DefaultFieldEditor.AbstractEditorDelegate
All Implemented Interfaces:
ActionListener, ItemListener, Serializable, EventListener
Direct Known Subclasses:
BooleanEditor, DoubleEditor, IntegerEditor, StringValueEditor, UneditableEditor
Enclosing class:
DefaultFieldEditor

public abstract static class DefaultFieldEditor.AbstractEditorDelegate
extends Object
implements ActionListener, ItemListener, Serializable

The protected EditorDelegate class.

See Also:
Serialized Form

Field Summary
 DefaultFieldEditor editor
           
 
Constructor Summary
DefaultFieldEditor.AbstractEditorDelegate(DefaultFieldEditor argEditor)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
          When an action is performed, editing is ended.
 void cancelCellEditing()
          Cancels editing.
abstract  Object getCellEditorValue()
          Returns the value of this cell.
abstract  Component getComponent()
           
 void itemStateChanged(ItemEvent e)
          When an item's state changes, editing is ended.
abstract  void revert()
           
abstract  void setValue(Object value)
          Sets the value of this cell.
 boolean shouldSelectCell(EventObject anEvent)
          Returns true to indicate that the editing cell may be selected.
 boolean startCellEditing(EventObject anEvent)
          Returns true to indicate that editing has begun.
 boolean stopCellEditing()
          Stops editing and returns true to indicate that editing has stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

public DefaultFieldEditor editor
Constructor Detail

DefaultFieldEditor.AbstractEditorDelegate

public DefaultFieldEditor.AbstractEditorDelegate(DefaultFieldEditor argEditor)
Method Detail

getComponent

public abstract Component getComponent()

getCellEditorValue

public abstract Object getCellEditorValue()
Returns the value of this cell.

Returns:
the value of this cell

setValue

public abstract void setValue(Object value)
Sets the value of this cell.

Parameters:
value - the new value of this cell

revert

public abstract void revert()

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Returns true to indicate that the editing cell may be selected.

Parameters:
anEvent - the event
Returns:
true
See Also:
DefaultFieldEditor.isCellEditable(java.util.EventObject)

startCellEditing

public boolean startCellEditing(EventObject anEvent)
Returns true to indicate that editing has begun.

Parameters:
anEvent - the event

stopCellEditing

public boolean stopCellEditing()
Stops editing and returns true to indicate that editing has stopped. This method calls fireEditingStopped.

Returns:
true

cancelCellEditing

public void cancelCellEditing()
Cancels editing. This method calls fireEditingCanceled.


actionPerformed

public void actionPerformed(ActionEvent e)
When an action is performed, editing is ended.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the action event
See Also:
stopCellEditing()

itemStateChanged

public void itemStateChanged(ItemEvent e)
When an item's state changes, editing is ended.

Specified by:
itemStateChanged in interface ItemListener
Parameters:
e - the action event
See Also:
stopCellEditing()


Copyright © 2011. All Rights Reserved.