jdk/src/share/classes/javax/swing/SpinnerModel.java
changeset 21278 ef8a3a2a72f2
parent 5506 202f599c92aa
child 23010 6dadb192ad81
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
    31 
    31 
    32 /**
    32 /**
    33  * A model for a potentially unbounded sequence of object values.  This model
    33  * A model for a potentially unbounded sequence of object values.  This model
    34  * is similar to <code>ListModel</code> however there are some important differences:
    34  * is similar to <code>ListModel</code> however there are some important differences:
    35  * <ul>
    35  * <ul>
    36  * <li> The number of sequence elements isn't neccessarily bounded.
    36  * <li> The number of sequence elements isn't necessarily bounded.
    37  * <li> The model doesn't support indexed random access to sequence elements.
    37  * <li> The model doesn't support indexed random access to sequence elements.
    38  *      Only three sequence values are accessible at a time: current, next and
    38  *      Only three sequence values are accessible at a time: current, next and
    39  *      previous.
    39  *      previous.
    40  * <li> The current sequence element, can be set.
    40  * <li> The current sequence element, can be set.
    41  * </ul>
    41  * </ul>
    48  *   <dt><code>nextValue</code>
    48  *   <dt><code>nextValue</code>
    49  *   <dd>The following element or null if <code>value</code> is the
    49  *   <dd>The following element or null if <code>value</code> is the
    50  *     last element of the sequence.
    50  *     last element of the sequence.
    51  *
    51  *
    52  *   <dt><code>previousValue</code>
    52  *   <dt><code>previousValue</code>
    53  *   <dd>The preceeding element or null if <code>value</code> is the
    53  *   <dd>The preceding element or null if <code>value</code> is the
    54  *     first element of the sequence.
    54  *     first element of the sequence.
    55  * </dl>
    55  * </dl>
    56  * When the the <code>value</code> property changes,
    56  * When the the <code>value</code> property changes,
    57  * <code>ChangeListeners</code> are notified.  <code>SpinnerModel</code> may
    57  * <code>ChangeListeners</code> are notified.  <code>SpinnerModel</code> may
    58  * choose to notify the <code>ChangeListeners</code> under other circumstances.
    58  * choose to notify the <code>ChangeListeners</code> under other circumstances.