Class AbstractSerializableBean
java.lang.Object
org.jdesktop.beans.AbstractBean
org.jdesktop.beans.AbstractSerializableBean
- All Implemented Interfaces:
Serializable
This subclass enhances
AbstractBean by implementing the
Serializable interface. AbstractSerializableBean correctly
serializes all Serializable listeners that it contains. Implementors
that need to extends AbstractBean or one of its subclasses and
require serialization should use this class if possible. If it is not
possible to extend this class, the implementation can guide implementors on
how to properly serialize the listeners.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance ofAbstractSerializableBean.protectedCreates a new instance ofAbstractSerializableBean, using the supplied support delegates. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidMethods inherited from class AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Constructor Details
-
AbstractSerializableBean
protected AbstractSerializableBean()Creates a new instance ofAbstractSerializableBean. -
AbstractSerializableBean
Creates a new instance ofAbstractSerializableBean, using the supplied support delegates. Neither of these may benull.- Parameters:
pcs- the property change support class to usevcs- the vetoable change support class to use- Throws:
NullPointerException- if any parameter isnull
-
-
Method Details
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
ClassNotFoundExceptionIOException
-