kiwi.ui
Class AbstractCellEditor

java.lang.Object
  |
  +--kiwi.ui.AbstractCellEditor
Direct Known Subclasses:
ImmutableCellEditor

public class AbstractCellEditor
extends Object
implements CellEditor

A base class for CellEditors, providing default implementations for all methods in the CellEditor interface and support for managing a series of listeners.

Version:
1.0
Author:
Philip Milne
See Also:
CellEditor

Field Summary
protected  EventListenerList listenerList
           
 
Constructor Summary
AbstractCellEditor()
           
 
Method Summary
 void addCellEditorListener(CellEditorListener listener)
           
 void cancelCellEditing()
           
protected  void fireEditingCanceled()
          Notify all listeners that have registered interest for notification on this event type.
protected  void fireEditingStopped()
          Notify all listeners that have registered interest for notification on this event type.
 Object getCellEditorValue()
           
 boolean isCellEditable(EventObject e)
           
 void removeCellEditorListener(CellEditorListener listener)
           
 boolean shouldSelectCell(EventObject anEvent)
           
 boolean stopCellEditing()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected EventListenerList listenerList
Constructor Detail

AbstractCellEditor

public AbstractCellEditor()
Method Detail

getCellEditorValue

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

isCellEditable

public boolean isCellEditable(EventObject e)
Specified by:
isCellEditable in interface CellEditor

shouldSelectCell

public boolean shouldSelectCell(EventObject anEvent)
Specified by:
shouldSelectCell in interface CellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor

addCellEditorListener

public void addCellEditorListener(CellEditorListener listener)
Specified by:
addCellEditorListener in interface CellEditor

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener listener)
Specified by:
removeCellEditorListener in interface CellEditor

fireEditingStopped

protected void fireEditingStopped()
Notify all listeners that have registered interest for notification on this event type.
See Also:
EventListenerList

fireEditingCanceled

protected void fireEditingCanceled()
Notify all listeners that have registered interest for notification on this event type.
See Also:
EventListenerList