26 package javax.swing;
27
28 import java.awt.Component;
29 import java.awt.event.*;
30 import java.beans.ConstructorProperties;
31 import java.lang.Boolean;
32 import javax.swing.table.*;
33 import javax.swing.event.*;
34 import java.util.EventObject;
35 import javax.swing.tree.*;
36 import java.io.Serializable;
37
38 /**
39 * The default editor for table and tree cells.
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 Alan Chung
51 * @author Philip Milne
52 * @since 1.2
53 */
54 @SuppressWarnings("serial") // Same-version serialization only
55 public class DefaultCellEditor extends AbstractCellEditor
56 implements TableCellEditor, TreeCellEditor {
57
58 //
59 // Instance Variables
60 //
61
62 /** The Swing component being edited. */
63 protected JComponent editorComponent;
64 /**
65 * The delegate class which handles all methods sent from the
66 * <code>CellEditor</code>.
|
26 package javax.swing;
27
28 import java.awt.Component;
29 import java.awt.event.*;
30 import java.beans.ConstructorProperties;
31 import java.lang.Boolean;
32 import javax.swing.table.*;
33 import javax.swing.event.*;
34 import java.util.EventObject;
35 import javax.swing.tree.*;
36 import java.io.Serializable;
37
38 /**
39 * The default editor for table and tree cells.
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 Alan Chung
51 * @author Philip Milne
52 * @since 1.2
53 */
54 @SuppressWarnings("serial") // Same-version serialization only
55 public class DefaultCellEditor extends AbstractCellEditor
56 implements TableCellEditor, TreeCellEditor {
57
58 //
59 // Instance Variables
60 //
61
62 /** The Swing component being edited. */
63 protected JComponent editorComponent;
64 /**
65 * The delegate class which handles all methods sent from the
66 * <code>CellEditor</code>.
|