Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private StringBinding nameBinding = new FXStringBinding() {
@Override
protected void configure() {
try {
addObservable(aProperty);
addObservable(aProperty.get().bProperty());
addObservable(aProperty.get().bProperty().get().cProperty());
addObservable(aProperty.get().bProperty().get().cProperty().get().stringProperty());
} catch (NullPointerException ignored) {
}
}
@Override
protected String compute() {
try {
return aProperty.get().bProperty().get().cProperty().get().stringProperty().get();
} catch (NullPointerException e) {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment