net.nexttext.property
Class Property

java.lang.Object
  extended by net.nexttext.property.Property
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BooleanProperty, ColorProperty, DateTimeProperty, NumberProperty, PVectorListProperty, PVectorProperty, ShapeProperty, StrokeProperty

public abstract class Property
extends java.lang.Object
implements java.lang.Cloneable

A property value of a TextObject or Behaviour.

TextObjects and Behaviours both keep properties accessible by name. Subclasses of this class are used to hold the values of these properties. Each property keeps an origin value and a current value.

Property implements Cloneable so that a TextObject's properties can be copied easily.


Constructor Summary
Property()
           
 
Method Summary
 void addChangeListener(PropertyChangeListener listener)
          Registers a new PropertyChangeListener for this property.
 Property clone()
          Get a new property with the same values as this one.
 java.lang.String getName()
           
abstract  void reset()
          Reset this property to its original value.
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property()
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

addChangeListener

public void addChangeListener(PropertyChangeListener listener)
Registers a new PropertyChangeListener for this property.


clone

public Property clone()
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 java.lang.Object

reset

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