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 void
addPropertiesListener(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)
void
addWeakPropertiesListener(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)
void
dispose()
MutableProperty
getProperty(K name)
java.lang.Object
getValue(K name)
protected <T> MutableProperty
getWrappedProperty(MutableProperty<T> property)
java.util.Iterator<K>
iterator()
void
removePropertiesListener(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)
void
setValue(K name, java.lang.Object value)
-
-
-
Constructor Detail
-
WrappedMutableProperties
public WrappedMutableProperties(MutableProperties<K> properties)
-
-
Method Detail
-
getProperty
public MutableProperty getProperty(K name)
- Specified by:
getProperty
in interfaceMutableProperties<K>
- Specified by:
getProperty
in interfaceProperties<K>
-
getValue
public java.lang.Object getValue(K name)
- Specified by:
getValue
in interfaceProperties<K>
-
addPropertiesListener
public void addPropertiesListener(PropertiesListener listener)
Description copied from interface:Properties
Add a listener to the list that's notified each time a change to the properties occurs.- Specified by:
addPropertiesListener
in interfaceProperties<K>
- Parameters:
listener
- the PropertiesListener
-
addWeakPropertiesListener
public void addWeakPropertiesListener(PropertiesListener listener)
Description copied from interface:Properties
Add 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:
addWeakPropertiesListener
in interfaceProperties<K>
- Parameters:
listener
- the PropertiesListener
-
removePropertiesListener
public void removePropertiesListener(PropertiesListener listener)
Description copied from interface:Properties
Remove a listener to the list that's notified each time a change to the properties occurs.- Specified by:
removePropertiesListener
in interfaceProperties<K>
- Parameters:
listener
- the SelectionListener
-
iterator
public java.util.Iterator<K> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<K>
-
createProperty
public <T> MutableProperty<T> createProperty(K name, T value)
- Specified by:
createProperty
in interfaceMutableProperties<K>
-
addProperty
public <T> MutableProperty<T> addProperty(K name, MutableProperty<T> property)
- Specified by:
addProperty
in interfaceMutableProperties<K>
-
replaceProperty
public <T> MutableProperty<T> replaceProperty(K name, MutableProperty<T> property)
- Specified by:
replaceProperty
in interfaceMutableProperties<K>
-
setValue
public void setValue(K name, java.lang.Object value)
- Specified by:
setValue
in interfaceMutableProperties<K>
-
getWrappedProperty
protected <T> MutableProperty getWrappedProperty(MutableProperty<T> property)
-
dispose
public void dispose()
-
-