org.jppf.ui.treetable
Class AbstractCellEditor

java.lang.Object
  extended by org.jppf.ui.treetable.AbstractCellEditor
All Implemented Interfaces:
CellEditor
Direct Known Subclasses:
JTreeTable.TreeTableCellEditor

public abstract class AbstractCellEditor
extends Object
implements CellEditor

Abstract cell editor for the tree table.

Author:
Philip Milne, Scott Violet

Field Summary
protected  EventListenerList listenerList
          The list of listners for this cell editor.
 
Constructor Summary
AbstractCellEditor()
           
 
Method Summary
 void addCellEditorListener(CellEditorListener l)
          
 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()
          Returns the value contained in the editor.
 boolean isCellEditable(EventObject event)
          Asks the editor if it can start editing using anEvent.
 void removeCellEditorListener(CellEditorListener l)
          
 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
The list of listners for this cell editor.

Constructor Detail

AbstractCellEditor

public AbstractCellEditor()
Method Detail

getCellEditorValue

public Object getCellEditorValue()
Returns the value contained in the editor. This method always returns null.

Specified by:
getCellEditorValue in interface CellEditor
Returns:
null.
See Also:
CellEditor.getCellEditorValue()

isCellEditable

public boolean isCellEditable(EventObject event)
Asks the editor if it can start editing using anEvent. This method always returns true.

Specified by:
isCellEditable in interface CellEditor
Parameters:
event - the event the editor should use to consider whether to begin editing or not.
Returns:
true.
See Also:
CellEditor.isCellEditable(java.util.EventObject)

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 l)

Specified by:
addCellEditorListener in interface CellEditor

removeCellEditorListener

public void removeCellEditorListener(CellEditorListener l)

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


Copyright © 2005-2010 JPPF Team.