Package com.macrofocus.common.properties
Interface Properties<K>
- All Superinterfaces:
Iterable<K>
- All Known Subinterfaces:
MutableProperties<K>
- All Known Implementing Classes:
AbstractProperties,EnumOverrideProperties,EnumProperties,OverrideProperties,SimpleProperties
A collection of named properties.
-
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.getProperty(K name) iterator()voidremovePropertiesListener(PropertiesListener<K> listener) Remove a listener to the list that's notified each time a change to the properties occurs.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
iterator
-
getProperty
-
getValue
-
addPropertiesListener
Add a listener to the list that's notified each time a change to the properties occurs.- Parameters:
listener- the PropertiesListener
-
addWeakPropertiesListener
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.- Parameters:
listener- the PropertiesListener
-
removePropertiesListener
Remove a listener to the list that's notified each time a change to the properties occurs.- Parameters:
listener- the SelectionListener
-