com.std.util
Class StatefulDate

java.lang.Object
extended by com.std.util.Stateful<java.util.Date>
extended by com.std.util.StatefulDate

public class StatefulDate
extends Stateful<java.util.Date>

an observable wrapper for a Date, that also provides some convenience functions for changing the date in relation to itself and its calendar

Author:
xxx

Constructor Summary
StatefulDate()
          creates a new wrapper with target = new Date()
 
Method Summary
 void nextDay()
          advances the target by one day
 void nextMonth()
          advances the target by one month
 void nextWeek()
          advances the target by 7 days
 void nextYear()
          advances the target by one year
 void previousDay()
          regresses the target by one day
 void previousMonth()
          regresses the target by one month
 void previousWeek()
          regresses the target by 7 days
 void previousYear()
          regresses the target by one day
 
Methods inherited from class com.std.util.Stateful
getTarget, onChanged, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulDate

public StatefulDate()
creates a new wrapper with target = new Date()

Method Detail

nextDay

public void nextDay()
advances the target by one day


nextMonth

public void nextMonth()
advances the target by one month


nextWeek

public void nextWeek()
advances the target by 7 days


nextYear

public void nextYear()
advances the target by one year


previousDay

public void previousDay()
regresses the target by one day


previousMonth

public void previousMonth()
regresses the target by one month


previousWeek

public void previousWeek()
regresses the target by 7 days


previousYear

public void previousYear()
regresses the target by one day