Class WrappedMutableProperties<K>
- java.lang.Object
-
- com.macrofocus.properties.implementation.WrappedMutableProperties<K>
-
- All Implemented Interfaces:
MutableProperties<K>,Properties<K>,java.lang.Iterable<K>
public class WrappedMutableProperties<K> extends java.lang.Object implements MutableProperties<K>
-
-
Constructor Summary
Constructors Constructor Description WrappedMutableProperties(MutableProperties<K> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertiesListener(PropertiesListener listener)Add a listener to the list that's notified each time a change to the properties occurs.<T> MutableProperty<T>addProperty(K name, MutableProperty<T> property)voidaddWeakPropertiesListener(PropertiesListener listener)Add a listener to the list that's notified each time a change to the properties occurs.<T> MutableProperty<T>createProperty(K name, T value)voiddispose()MutablePropertygetProperty(K name)java.lang.ObjectgetValue(K name)protected <T> MutablePropertygetWrappedProperty(MutableProperty<T> property)java.util.Iterator<K>iterator()voidremovePropertiesListener(PropertiesListener listener)Remove a listener to the list that's notified each time a change to the properties occurs.<T> MutableProperty<T>replaceProperty(K name, MutableProperty<T> property)voidsetValue(K name, java.lang.Object value)
-
-
-
Constructor Detail
-
WrappedMutableProperties
public WrappedMutableProperties(MutableProperties<K> properties)
-
-
Method Detail
-
getProperty
public MutableProperty getProperty(K name)
- Specified by:
getPropertyin interfaceMutableProperties<K>- Specified by:
getPropertyin interfaceProperties<K>
-
getValue
public java.lang.Object getValue(K name)
- Specified by:
getValuein interfaceProperties<K>
-
addPropertiesListener
public void addPropertiesListener(PropertiesListener listener)
Description copied from interface:PropertiesAdd a listener to the list that's notified each time a change to the properties occurs.- Specified by:
addPropertiesListenerin interfaceProperties<K>- Parameters:
listener- the PropertiesListener
-
addWeakPropertiesListener
public void addWeakPropertiesListener(PropertiesListener listener)
Description copied from interface:PropertiesAdd a listener to the list that's notified each time a change to the properties occurs. The listener will automatically be disposed of should no other object have a reference to it.- Specified by:
addWeakPropertiesListenerin interfaceProperties<K>- Parameters:
listener- the PropertiesListener
-
removePropertiesListener
public void removePropertiesListener(PropertiesListener listener)
Description copied from interface:PropertiesRemove a listener to the list that's notified each time a change to the properties occurs.- Specified by:
removePropertiesListenerin interfaceProperties<K>- Parameters:
listener- the SelectionListener
-
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<K>
-
createProperty
public <T> MutableProperty<T> createProperty(K name, T value)
- Specified by:
createPropertyin interfaceMutableProperties<K>
-
addProperty
public <T> MutableProperty<T> addProperty(K name, MutableProperty<T> property)
- Specified by:
addPropertyin interfaceMutableProperties<K>
-
replaceProperty
public <T> MutableProperty<T> replaceProperty(K name, MutableProperty<T> property)
- Specified by:
replacePropertyin interfaceMutableProperties<K>
-
setValue
public void setValue(K name, java.lang.Object value)
- Specified by:
setValuein interfaceMutableProperties<K>
-
getWrappedProperty
protected <T> MutableProperty getWrappedProperty(MutableProperty<T> property)
-
dispose
public void dispose()
-
-