public class PropertiesSupportHelper extends java.lang.Object implements PropertiesSupport, Persistent, Observable, Cloneable
private PropertiesSupportHelper propertiesHelper = new PropertiesSupportHelper();
...
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTIES_CHANGE |
static java.lang.String |
PROPERTY_CHANGE |
Constructor and Description |
---|
PropertiesSupportHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer o) |
PropertiesSupportHelper |
clone()
Creates a copy of the object.
|
protected void |
copyFrom(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String key) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
setProperty(java.lang.String key,
java.lang.Object val) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public static final java.lang.String PROPERTY_CHANGE
public static final java.lang.String PROPERTIES_CHANGE
public PropertiesSupportHelper clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public java.lang.Object getProperty(java.lang.String key)
getProperty
in interface PropertiesSupport
public void setProperty(java.lang.String key, java.lang.Object val)
setProperty
in interface PropertiesSupport
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface PropertiesSupport
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
protected void copyFrom(java.util.Map<java.lang.String,java.lang.Object> properties)
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public static void registerPersistence()