counter.models
Class Counter

java.lang.Object
  |
  +--gvt.mvc.Model
        |
        +--counter.models.Counter

public class Counter
extends Model

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

Counter

public Counter()
The Constructor: it resets the counter;
Method Detail

incr

public void incr()
increments the counter

decr

public void decr()
decrements the counter

reset

public void reset()
resets the counter to zero

set

public void set(java.lang.Number n)
set the counter to a given value

get

public java.lang.Number get()
get the value of the counter