blob: 34c8bc3353b91d874388102a03f24eb91191abcc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/* */ import javax.swing.SpinnerModel;
/* */ import javax.swing.event.ChangeListener;
/* */
/* */ public class NonZeroSpinnerModel
/* */ implements SpinnerModel
/* */ {
/* 7 */ int current = 1;
/* */
/* */ public void addChangeListener(ChangeListener arg0)
/* */ {
/* */ }
/* */
/* */ public Object getNextValue()
/* */ {
/* 16 */ return new Integer(this.current + 1);
/* */ }
/* */
/* */ public Object getPreviousValue()
/* */ {
/* 21 */ if (this.current == 1) return new Integer(this.current);
/* 22 */ return new Integer(this.current - 1);
/* */ }
/* */
/* */ public Object getValue()
/* */ {
/* 27 */ return new Integer(this.current);
/* */ }
/* */
/* */ public void removeChangeListener(ChangeListener arg0)
/* */ {
/* */ }
/* */
/* */ public void setValue(Object arg0)
/* */ {
/* 38 */ if ((arg0 instanceof Integer))
/* 39 */ this.current = ((Integer)arg0).intValue();
/* */ }
/* */ }
/* Location: Modulus.jar
* Qualified Name: NonZeroSpinnerModel
* JD-Core Version: 0.6.2
*/
|