API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. DefaultBoundedRangeModel View Source
Author(s)
David Kloba
Hans Muller
Since
Version
1.48 03/01/06
Serial
Hierarchy
 Object
      DefaultBoundedRangeModel
Implements
 BoundedRangeModel
 Serializable
Subclasses
Description
public class DefaultBoundedRangeModel
  A generic implementation of BoundedRangeModel.
See also:    BoundedRangeModel
Constructors
public DefaultBoundedRangeModel ()
  Initializes all of the properties with default values.
public DefaultBoundedRangeModel (int value, int extent, int min, int max)
  Initializes value, extent, minimum and maximum.
Methods
Hide/Show inherited methods
public void addChangeListener (ChangeListener l) [Specified in BoundedRangeModel]
  Adds a ChangeListener.
protected void fireStateChanged ()
  Runs each ChangeListener's stateChanged method.
public ChangeListener getChangeListeners ()
  Returns an array of all the change listeners registered on this DefaultBoundedRangeModel.
public int getExtent () [Specified in BoundedRangeModel]
  Returns the model's extent.
public T getListeners (Class< T> listenerType)
  Returns an array of all the objects currently registered as FooListeners upon this model.
public int getMaximum () [Specified in BoundedRangeModel]
  Returns the model's maximum.
public int getMinimum () [Specified in BoundedRangeModel]
  Returns the model's minimum.
public int getValue () [Specified in BoundedRangeModel]
  Returns the model's current value.
public boolean getValueIsAdjusting () [Specified in BoundedRangeModel]
  Returns true if the value is in the process of changing as a result of actions being taken by the user.
public void removeChangeListener (ChangeListener l) [Specified in BoundedRangeModel]
  Removes a ChangeListener.
public void setExtent (int n) [Specified in BoundedRangeModel]
  Sets the extent to n after ensuring that n is greater than or equal to zero and falls within the model's constraints:
public void setMaximum (int n) [Specified in BoundedRangeModel]
  Sets the maximum to n after ensuring that n that the other three properties obey the model's constraints:
public void setMinimum (int n) [Specified in BoundedRangeModel]
  Sets the minimum to n after ensuring that n that the other three properties obey the model's constraints:
public void setRangeProperties (int newValue, int newExtent, int newMin, int newMax, boolean adjusting) [Specified in BoundedRangeModel]
  Sets all of the BoundedRangeModel properties after forcing the arguments to obey the usual constraints:
public void setValue (int n) [Specified in BoundedRangeModel]
  Sets the current value of the model.
public void setValueIsAdjusting (boolean b) [Specified in BoundedRangeModel]
  Sets the valueIsAdjusting property.
public String toString ()
Returns a string that displays all of the BoundedRangeModel properties.
Fields
Hide/Show inherited fields
protectedtransient ChangeEvent changeEvent
  Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property.
protected EventListenerList listenerList
The listeners waiting for model changes.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar