20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing;
27
28 import javax.swing.event.*;
29 import java.io.Serializable;
30 import java.util.EventListener;
31
32 /**
33 * A generic implementation of BoundedRangeModel.
34 * <p>
35 * <strong>Warning:</strong>
36 * Serialized objects of this class will not be compatible with
37 * future Swing releases. The current serialization support is
38 * appropriate for short term storage or RMI between applications running
39 * the same version of Swing. As of 1.4, support for long term storage
40 * of all JavaBeans™
41 * has been added to the <code>java.beans</code> package.
42 * Please see {@link java.beans.XMLEncoder}.
43 *
44 * @author David Kloba
45 * @author Hans Muller
46 * @see BoundedRangeModel
47 * @since 1.2
48 */
49 @SuppressWarnings("serial") // Same-version serialization only
50 public class DefaultBoundedRangeModel implements BoundedRangeModel, Serializable
51 {
52 /**
53 * Only one <code>ChangeEvent</code> is needed per model instance since the
54 * event's only (read-only) state is the source property. The source
55 * of events generated here is always "this".
56 */
57 protected transient ChangeEvent changeEvent = null;
58
59 /** The listeners waiting for model changes. */
60 protected EventListenerList listenerList = new EventListenerList();
|
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javax.swing;
27
28 import javax.swing.event.*;
29 import java.io.Serializable;
30 import java.util.EventListener;
31
32 /**
33 * A generic implementation of BoundedRangeModel.
34 * <p>
35 * <strong>Warning:</strong>
36 * Serialized objects of this class will not be compatible with
37 * future Swing releases. The current serialization support is
38 * appropriate for short term storage or RMI between applications running
39 * the same version of Swing. As of 1.4, support for long term storage
40 * of all JavaBeans
41 * has been added to the <code>java.beans</code> package.
42 * Please see {@link java.beans.XMLEncoder}.
43 *
44 * @author David Kloba
45 * @author Hans Muller
46 * @see BoundedRangeModel
47 * @since 1.2
48 */
49 @SuppressWarnings("serial") // Same-version serialization only
50 public class DefaultBoundedRangeModel implements BoundedRangeModel, Serializable
51 {
52 /**
53 * Only one <code>ChangeEvent</code> is needed per model instance since the
54 * event's only (read-only) state is the source property. The source
55 * of events generated here is always "this".
56 */
57 protected transient ChangeEvent changeEvent = null;
58
59 /** The listeners waiting for model changes. */
60 protected EventListenerList listenerList = new EventListenerList();
|