org.omus.data
Class DateField

java.lang.Object
  |
  +--org.omus.data.DataField
        |
        +--org.omus.data.DateField
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class DateField
extends DataField

The class corresponding to Date objects in ActionScript.

See Also:
Serialized Form

Constructor Summary
DateField(java.lang.String n, java.util.Date v)
          Creates a new DateField with the specified name and value.
 
Method Summary
 void accept(FieldVisitor fv)
          Accepts a visitor.
 java.lang.Object clone()
          Returns a clone of this DataField
 java.util.Date getDate()
          Returns the value of this DateField.
 void setDate(java.util.Date newValue)
          Sets the value of this DateField to the specified Date.
 java.lang.String toString()
           
 
Methods inherited from class org.omus.data.DataField
addListener, appendMarshalledField, getMarshalledField, getName, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateField

public DateField(java.lang.String n,
                 java.util.Date v)
Creates a new DateField with the specified name and value.
Method Detail

getDate

public java.util.Date getDate()
Returns the value of this DateField.

setDate

public void setDate(java.util.Date newValue)
Sets the value of this DateField to the specified Date.

accept

public void accept(FieldVisitor fv)
Description copied from class: DataField
Accepts a visitor. The visitor pattern is useful if you want to extend the functionality of all DataFields without modifying their API.
Overrides:
accept in class DataField

clone

public java.lang.Object clone()
Description copied from class: DataField
Returns a clone of this DataField
Overrides:
clone in class DataField

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object