public final class FXObservables extends Object
-
Method Summary
-
Method Details
-
observableBooleanValue
Returns a newObservableBooleanValuethat wraps a constant boolean value.- Parameters:
value- the constant boolean value- Returns:
- the new
ObservableBooleanValue
-
observableIntegerValue
Returns a newObservableIntegerValuethat wraps a constant integer value.- Parameters:
value- the constant integer value- Returns:
- the new
ObservableIntegerValue
-
observableLongValue
Returns a newObservableLongValuethat wraps a constant long value.- Parameters:
value- the constant long value- Returns:
- the new
ObservableLongValue
-
observableFloatValue
Returns a newObservableFloatValuethat wraps a constant float value.- Parameters:
value- the constant float value- Returns:
- the new
ObservableFloatValue
-
observableDoubleValue
Returns a newObservableDoubleValuethat wraps a constant double value.- Parameters:
value- the constant double value- Returns:
- the new
ObservableDoubleValue
-
observableObjectValue
Returns a newObservableObjectValuethat wraps a constant value.- Parameters:
value- the constant value- Returns:
- the new
ObservableObjectValue
-
observableListValue
Returns a newObservableListValuethat wraps a list.Modifications of the returned
ObservableListValueare reflected in the underlying list. Modifications of the underlying list do not raise events on the ObservableListValue.- Parameters:
list- the wrapped list- Returns:
- the new
ObservableListValue
-
observableListValue
public static <E> ObservableListValue<E> observableListValue(ObservableValue<? extends List<E>> value)Returns a newObservableListValuethat wraps anObservableValue.Modifications of the returned
ObservableListValueare reflected in the underlying list. Modifications of the underlying list raise change events on theObservableListValueif the underlying list implementsObservableList.- Parameters:
value- theObservableValue- Returns:
- the new
ObservableListValue
-
observableSetValue
Returns a newObservableSetValuethat wraps a set.Modifications of the returned
ObservableSetValueare reflected in the underlying set. Modifications of the underlying set do not raise events on the ObservableSetValue.- Parameters:
set- the wrapped set- Returns:
- the new
ObservableSetValue
-
observableSetValue
Returns a newObservableSetValuethat wraps anObservableValue.Modifications of the returned
ObservableSetValueare reflected in the underlying set. Modifications of the underlying set raise change events on theObservableSetValueif the underlying set implementsObservableSet.- Parameters:
value- theObservableValue- Returns:
- the new
ObservableSetValue
-
observableMapValue
Returns a newObservableMapValuethat wraps a map.Modifications of the returned
ObservableMapValueare reflected in the underlying map. Modifications of the underlying map do not raise events on the ObservableSetValue.- Parameters:
map- the wrapped map- Returns:
- the new
ObservableMapValue
-
observableMapValue
public static <K, V> ObservableMapValue<K,V> observableMapValue(ObservableValue<Map<K,V>> value)Returns a newObservableMapValuethat wraps anObservableValue.Modifications of the returned
ObservableMapValueare reflected in the underlying map. Modifications of the underlying map raise change events on theObservableMapValueif the underlying map implementsObservableMap.- Parameters:
value- theObservableValue- Returns:
- the new
ObservableMapValue
-