src/share/classes/javax/swing/DefaultBoundedRangeModel.java

Print this page
rev 10121 : 8046485: Add missing @since tag under javax.swing.*
Reviewed-by:


  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&trade;
  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  */
  48 @SuppressWarnings("serial") // Same-version serialization only
  49 public class DefaultBoundedRangeModel implements BoundedRangeModel, Serializable
  50 {
  51     /**
  52      * Only one <code>ChangeEvent</code> is needed per model instance since the
  53      * event's only (read-only) state is the source property.  The source
  54      * of events generated here is always "this".
  55      */
  56     protected transient ChangeEvent changeEvent = null;
  57 
  58     /** The listeners waiting for model changes. */
  59     protected EventListenerList listenerList = new EventListenerList();
  60 
  61     private int value = 0;
  62     private int extent = 0;
  63     private int min = 0;
  64     private int max = 100;
  65     private boolean isAdjusting = false;
  66 




  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&trade;
  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();
  61 
  62     private int value = 0;
  63     private int extent = 0;
  64     private int min = 0;
  65     private int max = 100;
  66     private boolean isAdjusting = false;
  67