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 TypeMethodDescriptionvoidaddPropertiesListener(PropertiesListener<K> listener) Add a listener to the list that's notified each time a change to the properties occurs.voidaddWeakPropertiesListener(PropertiesListener<K> listener) Add a listener to the list that's notified each time a change to the properties occurs.protected voidnotifyPropertyChanged(K name, PropertyEvent event) voidremovePropertiesListener(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, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.macrofocus.common.properties.Properties
getProperty, getValue, iterator
-
Constructor Details
-
AbstractProperties
public AbstractProperties()
-
-
Method Details
-
addPropertiesListener
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
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
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
-
notifyPropertyChanged
-