|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--gvt.mvc.Model
|
+--counter.models.Counter
This class implements the model of a Counter
| Constructor Summary | |
Counter()
The Constructor: it resets the counter; |
|
| Method Summary | |
void |
decr()
decrements the counter |
java.lang.Number |
get()
get the value of the counter |
void |
incr()
increments the counter |
void |
reset()
resets the counter to zero |
void |
set(java.lang.Number n)
set the counter to a given value |
| Methods inherited from class gvt.mvc.Model |
addView,
clearChanged,
hasChanged,
notifyViews,
removeView,
setChanged |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public Counter()
| Method Detail |
public void incr()
public void decr()
public void reset()
public void set(java.lang.Number n)
public java.lang.Number get()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||