Package com.macrofocus.common.properties
Interface Property<T>
- Type Parameters:
T- the type of elements that the property can hold
- All Known Subinterfaces:
ListProperty<T>,MutableListProperty<T>,MutableProperty<T>
- All Known Implementing Classes:
AbstractListProperty,AbstractMutableListProperty,AbstractMutableProperty,AbstractProperty,BoundedIntervalProperty,IntervalProperty,MutableAlgorithmOverrideProperty,MutableAlgorithmProperty,OverrideProperty,SimpleListProperty,SimpleProperty,SingleSelectionProperty
@JsType
public interface Property<T>
This interface represents the current value of a named property.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyListener(PropertyListener<T> listener) voidaddWeakPropertyListener(PropertyListener<T> listener) Add a listener to the list that's notified each time a change to the selection occurs.getValue()voidremovePropertyListener(PropertyListener<T> listener)
-
Method Details
-
getValue
T getValue() -
addPropertyListener
-
addWeakPropertyListener
Add a listener to the list that's notified each time a change to the selection occurs. The listener will automatically be disposed of should no other object have a reference to it.- Parameters:
listener- the SelectionListener
-
removePropertyListener
-