public class ExtendedBindings extends Object
| Constructor and Description |
|---|
ExtendedBindings() |
| Modifier and Type | Method and Description |
|---|---|
static javafx.beans.binding.BooleanBinding |
conditionBinding(javafx.beans.value.ObservableStringValue op,
Predicate<String> predicate)
Create an unidirectional boolean binding that resolves a given
ObservableStringValue by a given predicate. |
static javafx.beans.binding.StringBinding |
mappingBinding(javafx.beans.value.ObservableStringValue op,
Function<String,String> mapping)
Create an unidirectional String binding that resolves a given
ObservableStringValue by a given String-to-String mapping. |
static javafx.beans.binding.StringBinding |
resolvingBinding(javafx.beans.value.ObservableStringValue op1,
javafx.beans.value.ObservableStringValue op2,
BiFunction<String,String,String> resolving)
Create an unidirectional String binding that resolves two given
ObservableStringValues by a BiFunction that creates a
combined String value from both provied inputs. |
public static javafx.beans.binding.BooleanBinding conditionBinding(javafx.beans.value.ObservableStringValue op,
Predicate<String> predicate)
ObservableStringValue by a given predicate. Whenever the String
value changes, the predicate is reevaluated and all observers of the
returned binding are notified of the predicate change.op - observable Stringpredicate - String predicatepublic static javafx.beans.binding.StringBinding mappingBinding(javafx.beans.value.ObservableStringValue op,
Function<String,String> mapping)
ObservableStringValue by a given String-to-String mapping.
Whenever the String value changes, the mapping is computed again and all
observers of the returned binding are notified of the change.op - observable Stringmapping - String-to-String mappingpublic static javafx.beans.binding.StringBinding resolvingBinding(javafx.beans.value.ObservableStringValue op1,
javafx.beans.value.ObservableStringValue op2,
BiFunction<String,String,String> resolving)
ObservableStringValues by a BiFunction that creates a
combined String value from both provied inputs. Whenever one of the
String values change, the resolving function is computed again and all
observers of the returned binding are notified of the change.op1 - first observable String (will be put as first parameter of
resolving function)op2 - second observable String (will be put as second parameter of
resolving function)resolving - resolving BifunctionCopyright © 2015 illucIT Software GmbH. All rights reserved.