de.matthiasmann.twl.model
Class SimpleDateModel

java.lang.Object
  extended by de.matthiasmann.twl.model.HasCallback
      extended by de.matthiasmann.twl.model.SimpleDateModel
All Implemented Interfaces:
DateModel, WithRunnableCallback

public class SimpleDateModel
extends HasCallback
implements DateModel

A simple date model


Constructor Summary
SimpleDateModel()
          Initializes the date to the current system date
SimpleDateModel(long date)
           
 
Method Summary
 long getValue()
           
 void setValue(long date)
           
 
Methods inherited from class de.matthiasmann.twl.model.HasCallback
addCallback, doCallback, hasCallbacks, removeCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.matthiasmann.twl.utils.WithRunnableCallback
addCallback, removeCallback
 

Constructor Detail

SimpleDateModel

public SimpleDateModel()
Initializes the date to the current system date

See Also:
System.currentTimeMillis()

SimpleDateModel

public SimpleDateModel(long date)
Method Detail

getValue

public long getValue()
Specified by:
getValue in interface DateModel

setValue

public void setValue(long date)
Specified by:
setValue in interface DateModel