Package com.macrofocus.properties
Interface Properties<K>
-
- All Superinterfaces:
java.lang.Iterable<K>
- All Known Subinterfaces:
MutableProperties<K>
- All Known Implementing Classes:
AbstractProperties
,EnumProperties
,OverrideProperties
,SimpleProperties
,WrappedMutableProperties
@JsType public interface Properties<K> extends java.lang.Iterable<K>
A collection of named properties.
-
-
Method Summary
All Methods Instance Methods Abstract 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.Property
getProperty(K name)
java.lang.Object
getValue(K name)
void
removePropertiesListener(PropertiesListener listener)
Remove a listener to the list that's notified each time a change to the properties occurs.
-
-
-
Method Detail
-
getValue
java.lang.Object getValue(K name)
-
addPropertiesListener
void addPropertiesListener(PropertiesListener listener)
Add a listener to the list that's notified each time a change to the properties occurs.- Parameters:
listener
- the PropertiesListener
-
addWeakPropertiesListener
void addWeakPropertiesListener(PropertiesListener listener)
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
void removePropertiesListener(PropertiesListener listener)
Remove a listener to the list that's notified each time a change to the properties occurs.- Parameters:
listener
- the SelectionListener
-
-