Interface SpinnerModel<T>
- Type Parameters:
T- the object that this model returns.
public interface SpinnerModel<T>
A data model for use with objects that increment or decrement a standing value.
- Author:
- Matthew Tropiano
-
Method Summary
-
Method Details
-
getValue
T getValue()- Returns:
- the currently selected value.
-
setValue
Sets the currently selected value.- Parameters:
value- the new value for this model.
-
getNext
T getNext()- Returns:
- the next value after the value that would be returned by
getValue().
-
getPrevious
T getPrevious()- Returns:
- the previous value using what would be returned by #getValue().
-