API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SpinnerDateModel View Source
Author(s)
Hans Muller
Since
1.4
Version
1.13 11/17/05
Serial
Hierarchy
 Object
      AbstractSpinnerModel
          SpinnerDateModel
Implements
 Serializable
Subclasses
Description
public class SpinnerDateModel
  A SpinnerModel for sequences of Dates.
Constructors
public SpinnerDateModel ()
Constructs a SpinnerDateModel whose initial value is the current date, calendarField is equal to Calendar.DAY_OF_MONTH, and for which there are no start/end limits.
public SpinnerDateModel (Date value, Comparable start, Comparable end, int calendarField)
  Creates a SpinnerDateModel that represents a sequence of dates between start and end.
Methods
Hide/Show inherited methods
public void addChangeListener (ChangeListener l) [Inherited From AbstractSpinnerModel]
  Adds a ChangeListener to the model's listener list.
protected void fireStateChanged () [Inherited From AbstractSpinnerModel]
  Run each ChangeListeners stateChanged() method.
public int getCalendarField ()
  Returns the Calendar field that is added to or subtracted from by the nextValue and previousValue methods.
public ChangeListener getChangeListeners () [Inherited From AbstractSpinnerModel]
  Returns an array of all the ChangeListeners added to this AbstractSpinnerModel with addChangeListener().
public Date getDate ()
  Returns the current element in this sequence of Dates.
public Comparable getEnd ()
  Returns the last Date in the sequence.
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 Date in the sequence, or null if the next date is after end.
public Object getPreviousValue ()
  Returns the previous Date in the sequence, or null if the previous date is before start.
public Comparable getStart ()
  Returns the first Date in the sequence.
public Object getValue ()
  Returns the current element in this sequence of Dates.
public void removeChangeListener (ChangeListener l) [Inherited From AbstractSpinnerModel]
  Removes a ChangeListener from the model's listener list.
public void setCalendarField (int calendarField)
  Changes the size of the date value change computed by the nextValue and previousValue methods.
public void setEnd (Comparable end)
  Changes the upper limit for Dates in this sequence.
public void setStart (Comparable start)
  Changes the lower limit for Dates in this sequence.
public void setValue (Object value)
  Sets the current Date for this sequence.
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