Package org.gvsig.fmap.mapcontext.layers
Class ExtendedPropertiesHelper
java.lang.Object
org.gvsig.tools.util.PropertiesSupportHelper
org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesHelper
- All Implemented Interfaces:
Cloneable,ExtendedPropertiesSupport,org.gvsig.tools.lang.Cloneable,org.gvsig.tools.observer.Observable,org.gvsig.tools.persistence.Persistent,org.gvsig.tools.util.PropertiesSupport
public class ExtendedPropertiesHelper
extends org.gvsig.tools.util.PropertiesSupportHelper
implements ExtendedPropertiesSupport, org.gvsig.tools.persistence.Persistent
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.gvsig.tools.util.PropertiesSupportHelper
PROPERTIES_CHANGE, PROPERTY_CHANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a hash map with all new properties associated to this layer.getProperty(Object key) Returns a reference to an object (property) associated to this layer.voidsetExtendedProperties(Map properties) voidsetProperty(Object key, Object val) Inserts an object as a property to this layer.Methods inherited from class org.gvsig.tools.util.PropertiesSupportHelper
addObserver, clone, copyFrom, deleteObserver, deleteObservers, getProperties, getProperty, loadFromState, registerPersistence, saveToState, setProperties, setPropertyMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.tools.persistence.Persistent
loadFromState, saveToState
-
Constructor Details
-
ExtendedPropertiesHelper
public ExtendedPropertiesHelper()
-
-
Method Details
-
getProperty
Description copied from interface:ExtendedPropertiesSupportReturns 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.
- Specified by:
getPropertyin interfaceExtendedPropertiesSupport- Parameters:
key- the key associated to the property- Returns:
nullif key is not found- See Also:
-
setProperty
Description copied from interface:ExtendedPropertiesSupportInserts an object as a property to this layer.- Specified by:
setPropertyin interfaceExtendedPropertiesSupport- Parameters:
key- the key associated to the propertyval- the property- See Also:
-
getExtendedProperties
Description copied from interface:ExtendedPropertiesSupportReturns a hash map with all new properties associated to this layer.- Specified by:
getExtendedPropertiesin interfaceExtendedPropertiesSupport- Returns:
- hash table with the added properties
- See Also:
-
setExtendedProperties
-