Skip to content

Commit

Permalink
feat: select all by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Aug 25, 2023
1 parent c6a6f47 commit a6f50a7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ private void createMultiIdsDialog(final ObservableList<Long> ids) {
int row = createCommonDialog(contents);

checkListView.setItems(ids);
checkListView.prefHeightProperty()
.bind(Bindings.size(checkListView.itemsProperty().get()).multiply(LIST_CELL_HEIGHT));
checkListView.getSelectionModel().selectAll();
selectAll.setSelected(true);
checkListView.prefHeightProperty().bind(Bindings.size(checkListView.itemsProperty().get()).multiply(LIST_CELL_HEIGHT));

final Button button = new Button("Browse");
button.setOnAction(event -> {
Expand Down

0 comments on commit a6f50a7

Please sign in to comment.