|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.nexttext.property.Property
public abstract class Property
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 |
|---|
public Property()
| Method Detail |
|---|
public void setName(java.lang.String name)
public java.lang.String getName()
public void addChangeListener(PropertyChangeListener listener)
public Property clone()
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.
clone in class java.lang.Objectpublic abstract void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||