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
,OverrideProperty
,SimpleListProperty
,SimpleProperty
,SingleSelectionProperty
@JsType
public interface Property<T>
This interface represents the current value of a named property.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyListener
(PropertyListener<T> listener) void
addWeakPropertyListener
(PropertyListener<T> listener) Add a listener to the list that's notified each time a change to the selection occurs.getValue()
void
removePropertyListener
(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
-