net.nexttext.property
Class DateTimeProperty

java.lang.Object
  extended by net.nexttext.property.Property
      extended by net.nexttext.property.DateTimeProperty
All Implemented Interfaces:
java.lang.Cloneable

public class DateTimeProperty
extends Property

A datetime property of a TextObject or Behaviour.


Constructor Summary
DateTimeProperty()
           
DateTimeProperty(java.util.Date date)
           
 
Method Summary
 DateTimeProperty clone()
          Get a new property with the same values as this one.
 java.util.Date get()
          Do not modify the returned value, use set() to make changes instead.
 java.util.Date getOriginal()
           
 void reset()
          Reset this property to its original value.
 void set(java.util.Date date)
           
 
Methods inherited from class net.nexttext.property.Property
addChangeListener, getName, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeProperty

public DateTimeProperty()

DateTimeProperty

public DateTimeProperty(java.util.Date date)
Method Detail

get

public java.util.Date get()
Do not modify the returned value, use set() to make changes instead.


getOriginal

public java.util.Date getOriginal()

set

public void set(java.util.Date date)

reset

public void reset()
Reset this property to its original value.

Specified by:
reset in class Property

clone

public DateTimeProperty clone()
Description copied from class: Property
Get a new property with the same values as this one.

The name is copied because that's what makes it a Property and not just a value.

PropertyChangeListeners are not copied to the new Property.

Overrides:
clone in class Property