caltool.schedule
Class RemindWhen

java.lang.Object
  extended by java.util.Observable
      extended by mvp.Model
          extended by caltool.schedule.RemindWhen
All Implemented Interfaces:
java.io.Serializable

public class RemindWhen
extends mvp.Model

RemindWhen defines how soon before a scheduled item the reminder is to be sent. The time units are minutes, hours, or days.

See Also:
Serialized Form

Field Summary
protected  int time
          The amount of time in hours, days, or minutes
protected  ReminderTimeUnit unit
          The unit of time
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
RemindWhen()
          Construct an empty RemindWhen.
RemindWhen(int time, ReminderTimeUnit unit)
          Construct a RemindWhen with the given time and unit.
 
Method Summary
 int getTime()
          Return the time.
 ReminderTimeUnit getTimeUnit()
          Return the time unit.
 
Methods inherited from class mvp.Model
dump, exit, getView, setView
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

protected int time
The amount of time in hours, days, or minutes


unit

protected ReminderTimeUnit unit
The unit of time

Constructor Detail

RemindWhen

public RemindWhen()
Construct an empty RemindWhen.


RemindWhen

public RemindWhen(int time,
                  ReminderTimeUnit unit)
Construct a RemindWhen with the given time and unit.

Method Detail

getTime

public int getTime()
Return the time.


getTimeUnit

public ReminderTimeUnit getTimeUnit()
Return the time unit.