org.omus.data
Class DataField

java.lang.Object
  |
  +--org.omus.data.DataField
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
BooleanField, CounterField, DataList, DataRow, DataTable, DateField, DoubleField, IntField, LongField, StringField

public abstract class DataField
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

The abstract superclass of all DataFields.

See Also:
Serialized Form

Method Summary
abstract  void accept(FieldVisitor fv)
          Accepts a visitor.
 void addListener(FieldListener cl)
          Adds a listener to this DataField that gets notified when the value of this object was modified.
 java.lang.Object clone()
          Returns a clone of this DataField
 java.lang.String getName()
          Returns the name of this DataField.
 void removeListener(FieldListener clRem)
          Removes the specified listener from this DataField.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this DataField.

clone

public java.lang.Object clone()
Returns a clone of this DataField

addListener

public void addListener(FieldListener cl)
Adds a listener to this DataField that gets notified when the value of this object was modified.

removeListener

public void removeListener(FieldListener clRem)
Removes the specified listener from this DataField.

accept

public abstract void accept(FieldVisitor fv)
Accepts a visitor. The visitor pattern is useful if you want to extend the functionality of all DataFields without modifying their API.