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, waitcloneQuietly, cloneQuietlypublic static final java.lang.String PROPERTY_CHANGE
public static final java.lang.String PROPERTIES_CHANGE
public PropertiesSupportHelper clone() throws java.lang.CloneNotSupportedException
Cloneableclone in class java.lang.Objectjava.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 PropertiesSupportpublic void setProperty(java.lang.String key,
java.lang.Object val)
setProperty in interface PropertiesSupportpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface PropertiesSupportpublic 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
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic void addObserver(Observer o)
addObserver in interface Observablepublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic static void registerPersistence()