36 * interface except <code>getCellEditorValue()</code>. 37 * Like the other abstract implementations in Swing, also manages a list 38 * of listeners. 39 * 40 * <p> 41 * <strong>Warning:</strong> 42 * Serialized objects of this class will not be compatible with 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 protected EventListenerList listenerList = new EventListenerList(); 57 transient protected ChangeEvent changeEvent = null; 58 59 // Force this to be implemented. 60 // public Object getCellEditorValue() 61 62 /** 63 * Returns true. 64 * @param e an event object 65 * @return true 66 */ 67 public boolean isCellEditable(EventObject e) { 68 return true; 69 } 70 71 /** 72 * Returns true. 73 * @param anEvent an event object 74 * @return true 75 */ 76 public boolean shouldSelectCell(EventObject anEvent) { | 36 * interface except <code>getCellEditorValue()</code>. 37 * Like the other abstract implementations in Swing, also manages a list 38 * of listeners. 39 * 40 * <p> 41 * <strong>Warning:</strong> 42 * Serialized objects of this class will not be compatible with 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) { |