API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SpinnerListModel View Source
Author(s)
Hans Muller
Since
1.4
Version
1.12 11/17/05
Serial
Hierarchy
 Object
      AbstractSpinnerModel
          SpinnerListModel
Implements
 Serializable
Subclasses
Description
public class SpinnerListModel
  A simple implementation of SpinnerModel whose values are defined by an array or a List.
Constructors
public SpinnerListModel ()
  Constructs an effectively empty SpinnerListModel.
public SpinnerListModel (List<Object> values)
  Constructs a SpinnerModel whose sequence of values is defined by the specified List.
public SpinnerListModel (Object values)
  Constructs a SpinnerModel whose sequence of values is defined by the specified array.
Methods
Hide/Show inherited methods
public void addChangeListener (ChangeListener l) [Inherited From AbstractSpinnerModel]
  Adds a ChangeListener to the model's listener list.
pack-private Object findNextMatch (String substring)
  Returns the next object that starts with substring.
protected void fireStateChanged () [Inherited From AbstractSpinnerModel]
  Run each ChangeListeners stateChanged() method.
public ChangeListener getChangeListeners () [Inherited From AbstractSpinnerModel]
  Returns an array of all the ChangeListeners added to this AbstractSpinnerModel with addChangeListener().
public List<Object> getList ()
  Returns the List that defines the sequence for this model.
public T getListeners (Class< T> listenerType) [Inherited From AbstractSpinnerModel]
  Return an array of all the listeners of the given type that were added to this model.
public Object getNextValue ()
  Returns the next legal value of the underlying sequence or null if value is already the last element.
public Object getPreviousValue ()
  Returns the previous element of the underlying sequence or null if value is already the first element.
public Object getValue ()
  Returns the current element of the sequence.
public void removeChangeListener (ChangeListener l) [Inherited From AbstractSpinnerModel]
  Removes a ChangeListener from the model's listener list.
public void setList (List<Object> list)
  Changes the list that defines this sequence and resets the index of the models value to zero.
public void setValue (Object elt)
  Changes the current element of the sequence and notifies ChangeListeners.
Fields
Hide/Show inherited fields
protected EventListenerList listenerList [Inherited From AbstractSpinnerModel]
  The list of ChangeListeners for this model.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar