public class ExtendedPropertiesHelper extends PropertiesSupportHelper implements ExtendedPropertiesSupport, Persistent
Modifier and Type | Class and Description |
---|---|
static class |
ExtendedPropertiesHelper.RegisterPersistence |
PROPERTIES_CHANGE, PROPERTY_CHANGE
Constructor and Description |
---|
ExtendedPropertiesHelper() |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getExtendedProperties()
Returns a hash map with all new properties associated to this layer.
|
java.lang.Object |
getProperty(java.lang.Object key)
Returns a reference to an object (property) associated to this layer.
|
void |
setExtendedProperties(java.util.Map properties) |
void |
setProperty(java.lang.Object key,
java.lang.Object val)
Inserts an object as a property to this layer.
|
addObserver, clone, copyFrom, deleteObserver, deleteObservers, getProperties, getProperty, loadFromState, registerPersistence, saveToState, setProperties, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadFromState, saveToState
cloneQuietly, cloneQuietly
public java.lang.Object getProperty(java.lang.Object key)
ExtendedPropertiesSupport
Returns a reference to an object (property) associated to this layer.
For example, you can attach a network definition to key "network" and check if a layer has a network loaded using getAssociatedObject("network") and that it's not null.
getProperty
in interface ExtendedPropertiesSupport
key
- the key associated to the propertynull
if key is not foundExtendedPropertiesSupport.getExtendedProperties()
,
ExtendedPropertiesSupport.setProperty(Object, Object)
public void setProperty(java.lang.Object key, java.lang.Object val)
ExtendedPropertiesSupport
setProperty
in interface ExtendedPropertiesSupport
key
- the key associated to the propertyval
- the propertyExtendedPropertiesSupport.getProperty(Object)
,
ExtendedPropertiesSupport.getExtendedProperties()
public java.util.Map getExtendedProperties()
ExtendedPropertiesSupport
getExtendedProperties
in interface ExtendedPropertiesSupport
ExtendedPropertiesSupport.getProperty(Object)
,
ExtendedPropertiesSupport.setProperty(Object, Object)
public void setExtendedProperties(java.util.Map properties)