Joda System API

org.joda.property.impl.data
Class AbstractPropertyData

java.lang.Object
  |
  +--org.joda.property.impl.data.AbstractPropertyData
All Implemented Interfaces:
InitializablePropertyData, PropertyData, java.io.Serializable
Direct Known Subclasses:
CodedBeanPropertyData, DefaultPropertyData, UnmodifiablePropertyData

public abstract class AbstractPropertyData
extends java.lang.Object
implements PropertyData, InitializablePropertyData

Abstract implementation of the PropertyData interface that stores the owning node.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
AbstractPropertyData()
          Constructor
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener lnr)
          Add a listener to the list of those receiving change events.
 Bean bean()
          Get the bean
 void firePropertyChange(java.lang.Object oldValue, java.lang.Object newValue)
          Fire the event
 void firePropertyChange(java.beans.PropertyChangeEvent event)
          Fire the event
 void initPropertyDataCreated(PropertyDataInit init)
          Initialize once everything else done
 Property property()
          Get the property this data belongs to.
 void removePropertyChangeListener(java.beans.PropertyChangeListener lnr)
          Remove the specified listener from the list currently receiving change events.
 java.lang.String toString()
          Debugging toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.joda.property.impl.PropertyData
equals, get, hashCode, isModifiable, isReadOnly, set, setModifiable, setReadOnly
 

Constructor Detail

AbstractPropertyData

public AbstractPropertyData()
Constructor

Method Detail

initPropertyDataCreated

public void initPropertyDataCreated(PropertyDataInit init)
Initialize once everything else done

Specified by:
initPropertyDataCreated in interface InitializablePropertyData

property

public Property property()
Description copied from interface: PropertyData
Get the property this data belongs to.

Specified by:
property in interface PropertyData
Returns:
the owning property
See Also:
PropertyData.property()

bean

public Bean bean()
Get the bean


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener lnr)
Description copied from interface: PropertyData
Add a listener to the list of those receiving change events. No action occurs if null is passed in.

Specified by:
addPropertyChangeListener in interface PropertyData
Parameters:
lnr - a listener to add to the list
See Also:
PropertyData.addPropertyChangeListener(PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener lnr)
Description copied from interface: PropertyData
Remove the specified listener from the list currently receiving change events. No action occurs if the listener is not in the list.

Specified by:
removePropertyChangeListener in interface PropertyData
Parameters:
lnr - a listener to remove from the list
See Also:
PropertyData.removePropertyChangeListener(PropertyChangeListener)

firePropertyChange

public void firePropertyChange(java.lang.Object oldValue,
                               java.lang.Object newValue)
Fire the event


firePropertyChange

public void firePropertyChange(java.beans.PropertyChangeEvent event)
Fire the event

Specified by:
firePropertyChange in interface PropertyData
Parameters:
event - the event to send

toString

public java.lang.String toString()
Debugging toString

Specified by:
toString in interface PropertyData
Overrides:
toString in class java.lang.Object
Returns:
debugging string

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.