Class AbstractProperties<K>
- java.lang.Object
-
- com.macrofocus.properties.implementation.AbstractProperties<K>
-
- All Implemented Interfaces:
Properties<K>
,java.lang.Iterable<K>
- Direct Known Subclasses:
EnumProperties
,OverrideProperties
,SimpleProperties
public abstract class AbstractProperties<K> extends java.lang.Object implements Properties<K>
-
-
Constructor Summary
Constructors Constructor Description AbstractProperties()
-
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.void
addWeakPropertiesListener(PropertiesListener 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 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 com.macrofocus.properties.Properties
getProperty, getValue
-
-
-
-
Method Detail
-
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
-
notifyPropertyChanged
protected void notifyPropertyChanged(K name, PropertyEvent event)
-
-