src/java.desktop/share/classes/javax/swing/AbstractCellEditor.java

Print this page




  43  * future Swing releases. The current serialization support is
  44  * appropriate for short term storage or RMI between applications running
  45  * the same version of Swing.  As of 1.4, support for long term storage
  46  * of all JavaBeans™
  47  * has been added to the <code>java.beans</code> package.
  48  * Please see {@link java.beans.XMLEncoder}.
  49  *
  50  * @author Philip Milne
  51  * @since 1.3
  52  */
  53 @SuppressWarnings("serial") // Same-version serialization only
  54 public abstract class AbstractCellEditor implements CellEditor, Serializable {
  55 
  56     /**
  57      * The list of listeners.
  58      */
  59     protected EventListenerList listenerList = new EventListenerList();
  60     /**
  61      * The change event.
  62      */
  63     transient protected ChangeEvent changeEvent = null;
  64 
  65     // Force this to be implemented.
  66     // public Object  getCellEditorValue()
  67 
  68     /**
  69      * Returns true.
  70      * @param e  an event object
  71      * @return true
  72      */
  73     public boolean isCellEditable(EventObject e) {
  74         return true;
  75     }
  76 
  77     /**
  78      * Returns true.
  79      * @param anEvent  an event object
  80      * @return true
  81      */
  82     public boolean shouldSelectCell(EventObject anEvent) {
  83         return true;




  43  * future Swing releases. The current serialization support is
  44  * appropriate for short term storage or RMI between applications running
  45  * the same version of Swing.  As of 1.4, support for long term storage
  46  * of all JavaBeans&trade;
  47  * has been added to the <code>java.beans</code> package.
  48  * Please see {@link java.beans.XMLEncoder}.
  49  *
  50  * @author Philip Milne
  51  * @since 1.3
  52  */
  53 @SuppressWarnings("serial") // Same-version serialization only
  54 public abstract class AbstractCellEditor implements CellEditor, Serializable {
  55 
  56     /**
  57      * The list of listeners.
  58      */
  59     protected EventListenerList listenerList = new EventListenerList();
  60     /**
  61      * The change event.
  62      */
  63     protected transient ChangeEvent changeEvent = null;
  64 
  65     // Force this to be implemented.
  66     // public Object  getCellEditorValue()
  67 
  68     /**
  69      * Returns true.
  70      * @param e  an event object
  71      * @return true
  72      */
  73     public boolean isCellEditable(EventObject e) {
  74         return true;
  75     }
  76 
  77     /**
  78      * Returns true.
  79      * @param anEvent  an event object
  80      * @return true
  81      */
  82     public boolean shouldSelectCell(EventObject anEvent) {
  83         return true;