Package com.macrofocus.common.properties
Class AbstractProperties<K>
java.lang.Object
com.macrofocus.common.properties.AbstractProperties<K>
- All Implemented Interfaces:
Properties<K>
,Iterable<K>
- Direct Known Subclasses:
EnumOverrideProperties
,EnumProperties
,OverrideProperties
,SimpleProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertiesListener
(PropertiesListener<K> listener) Add a listener to the list that's notified each time a change to the properties occurs.void
addWeakPropertiesListener
(PropertiesListener<K> listener) Add a listener to the list that's notified each time a change to the properties occurs.protected void
notifyPropertyChanged
(K name, PropertyEvent event) void
removePropertiesListener
(PropertiesListener<K> listener) Remove a listener to the list that's notified each time a change to the properties occurs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.macrofocus.common.properties.Properties
getProperty, getValue, iterator
-
Constructor Details
-
AbstractProperties
public AbstractProperties()
-
-
Method Details
-
addPropertiesListener
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
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
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
-
notifyPropertyChanged
-