Skip to content

Commit

Permalink
bind bidirectional
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Feb 3, 2020
1 parent 50c054d commit e497e03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public CustomizeEntryTypeDialogView(BibDatabaseContext bibDatabaseContext) {
ViewLoader.view(this)
.load()
.setAsDialogPane(this);

setResultConverter(button -> {
if (button.getButtonData() == ButtonData.OK_DONE) {
viewModel.apply();
Expand Down Expand Up @@ -101,7 +101,7 @@ private void setupTable() {
.withOnMouseClickedEvent(item -> evt -> viewModel.removeField(fields.getFocusModel().getFocusedItem()))
.install(fieldTypeActionColumn);

viewModel.newFieldToAddProperty().bind(addNewField.valueProperty());
viewModel.newFieldToAddProperty().bindBidirectional(addNewField.valueProperty());
fields.itemsProperty().bindBidirectional(viewModel.fieldsforTypesProperty());
}

Expand Down

0 comments on commit e497e03

Please sign in to comment.