1 |
/* SpinnerModel.java -- |
/* SpinnerModel.java -- |
2 |
Copyright (C) 2003 Free Software Foundation, Inc. |
Copyright (C) 2003, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
45 |
*/ |
*/ |
46 |
public interface SpinnerModel |
public interface SpinnerModel |
47 |
{ |
{ |
|
|
|
48 |
/** |
/** |
49 |
* Sets the current value of the model to that specified. |
* Sets the current value of the model to that specified. |
50 |
* Implementations can choose to refuse to accept the value |
* Implementations can choose to refuse to accept the value |
67 |
* |
* |
68 |
* @return The current value. |
* @return The current value. |
69 |
*/ |
*/ |
70 |
public Object getValue(); |
Object getValue(); |
71 |
|
|
72 |
/** |
/** |
73 |
* Returns the next value from the model. If the model is bounded, |
* Returns the next value from the model. If the model is bounded, |
77 |
* @return The next value, or null if there are no more values |
* @return The next value, or null if there are no more values |
78 |
* to retrieve. |
* to retrieve. |
79 |
*/ |
*/ |
80 |
public Object getNextValue(); |
Object getNextValue(); |
81 |
|
|
82 |
/** |
/** |
83 |
* Returns the previous value from the model. If the model is |
* Returns the previous value from the model. If the model is |
87 |
* @return The previous value, or null if there are no more |
* @return The previous value, or null if there are no more |
88 |
* values to retrieve. |
* values to retrieve. |
89 |
*/ |
*/ |
90 |
public Object getPreviousValue(); |
Object getPreviousValue(); |
91 |
|
|
92 |
/** |
/** |
93 |
* Adds a <code>ChangeListener</code> to the list of registered |
* Adds a <code>ChangeListener</code> to the list of registered |