public abstract class javax.swing
AbstractCellEditor


Show All Login
Java SE 6
  
Implements: CellEditor, Serializable
Extended by: DefaultCellEditor
Details
version1.13 04/07/06 A base class for CellEditors, providing default implementations for the methods in the CellEditor interface except getCellEditorValue(). Like the other abstract implementations in Swing, also manages a list of listeners.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder.

since1.3

Fields
protected EventListenerList listenerList
protected ChangeEvent changeEvent

Constructors
public AbstractCellEditor()

Methods
public void addCellEditorListener(CellEditorListener l) Details
Adds a CellEditorListener to the listener list.
lthe new listener to be added
public void cancelCellEditing()
Calls fireEditingCanceled.
protected void fireEditingCanceled() Details
Notifies all listeners that have registered interest for notification on this event type. The event instance is created lazily.
See also javax.swing.event.EventListenerList
protected void fireEditingStopped() Details
Notifies all listeners that have registered interest for notification on this event type. The event instance is created lazily.
See also javax.swing.event.EventListenerList
public void removeCellEditorListener(CellEditorListener l) Details
Removes a CellEditorListener from the listener list.
lthe listener to be removed
public boolean shouldSelectCell(EventObject anEvent) Details
Returns true.
anEventan event object
returntrue
public boolean stopCellEditing() Details
Calls fireEditingStopped and returns true.
returntrue

Properties
public boolean isCellEditable(EventObject e) Details
Returns true.
ean event object
returntrue
public CellEditorListener[] getCellEditorListeners() Details
Returns an array of all the CellEditorListeners added to this AbstractCellEditor with addCellEditorListener().
returnall of the CellEditorListeners added or an empty array if no listeners have been added
since1.4