updateListHeight(); }); suggestionList.getStyleClass().add("autocomplete-list"); control.suggestionsCellFactoryProperty().addListener((o, oldVal, newVal) -> { if (newVal != null) {
TableView table = new TableView(items); table.getStyleClass().addAll("visible-lg", "visible-md"); ListView list = new ListView(items); list.getStyleClass().addAll("visible-xs", "visible-sm"); pane.getChildren().addAll(table, list);
public void init(BorderPane parent) { this.listView = new ListView<>(); this.listView.getStyleClass().add("efx-perspective-list"); //$NON-NLS-1$ this.listView.setCellFactory(PerspectiveCell::new); List<MPerspective> list = this.modelService.findElements(this.window, null, MPerspective.class, null);
public AutoCompletePopupSkin(AutoCompletePopup<T> control){ this.control = control; suggestionList = new ListView<>(control.getSuggestions()); suggestionList.getStyleClass().add(AutoCompletePopup.DEFAULT_STYLE_CLASS); suggestionList.getStylesheets().add(AutoCompletionBinding.class .getResource("autocompletion.css").toExternalForm()); //$NON-NLS-1$ /** * Here we bind the prefHeightProperty to the minimum height between the * max visible rows and the current items list. We also add an arbitrary * 5 number because when we have only one item we have the vertical * scrollBar showing for no reason. */ suggestionList.prefHeightProperty().bind( Bindings.min(control.visibleRowCountProperty(), Bindings.size(suggestionList.getItems())) .multiply(LIST_CELL_HEIGHT).add(18)); suggestionList.setCellFactory(TextFieldListCell.forListView(control.getConverter())); //Allowing the user to control ListView width. suggestionList.prefWidthProperty().bind(control.prefWidthProperty()); suggestionList.maxWidthProperty().bind(control.maxWidthProperty()); suggestionList.minWidthProperty().bind(control.minWidthProperty()); registerEventListener(); }
updateListHeight(); }); suggestionList.getStyleClass().add("autocomplete-list"); control.suggestionsCellFactoryProperty().addListener((o, oldVal, newVal) -> { if (newVal != null) {
this.stage.getScene().getStylesheets().addAll(this.viewer.getTextWidget().getScene().getStylesheets()); this.proposalList = new ListView<>(); this.proposalList.getStyleClass().add("content-proposal-list"); //$NON-NLS-1$ this.proposalList.setOnMouseClicked((e) -> { if(e.getClickCount() == 1) {
public void initialise() { final ListView<CompactListElement<E>> container = new ListView<>(); container.getStyleClass().addAll("listWidget", "compactListWidget");
public void initialise() { final ListView<DetailsListElement<E>> container = new ListView<>(); container.getStyleClass().addAll("listWidget", "detailsListWidget");