/** * Initializes the controller class. */ @Override public void initialize(URL url, ResourceBundle rb) { proxyType.setItems(FXCollections.observableArrayList(proxyTypes)); proxyType.getSelectionModel().selectedIndexProperty().addListener(this::alterView); final String currentManualProxy = System.getProperty("http.proxyHost"); if (currentManualProxy != null) { final String joined = currentManualProxy + ':' + System.getProperty("http.proxyPort"); } manualProxy.setVisible(currentManualProxy != null); }
/** * */ public void initialize() { this.backBtn.setText(RESOURCES.getString("back")); this.finishBtn.setText(RESOURCES.getString("finish")); this.finishBtn.setDisable(true); this.select.setText(RESOURCES.getString("select")); this.choiceTempl.setItems(TEMPLATES); this.choiceTempl.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> { selectedTemplate = newValue; finishBtn.setDisable(false); }); }
stateChoice.setItems(FXCollections.observableList(states)); stateChoice.setConverter(new StringConverter<WorkflowInstanceFilterController.EmptySelectionWorkaround>() { @Override
choice5.setItems(items); choice5.getSelectionModel().selectFirst(); AquaFx.resizeControl(choice5, ControlSizeVariant.REGULAR);
Label labelSurrounding = new Label("Umgebung:"); ChoiceBox<Object> choices = new ChoiceBox<Object>(); choices.setItems(FXCollections.observableArrayList("Automatisch", new Separator(), "Umgebungen bearbeiten ...")); choices.getSelectionModel().selectFirst(); header.getChildren().addAll(labelSurrounding, choices); grid.add(labelNetworkName, 0, 3); ChoiceBox<Object> choicesNetwork = new ChoiceBox<Object>(); choicesNetwork.setItems(FXCollections.observableArrayList("PrettyFlyForAWiFi", new Separator(), "Mit anderem Netzwerk verbinden ...", "Netzwerk anlegen")); choicesNetwork.getSelectionModel().select(2);
grid.add(combo5, 7, 2); ChoiceBox<String> choice5 = new ChoiceBox<String>(); choice5.setItems(items); choice5.getSelectionModel().selectFirst(); AquaFx.createChoiceBoxStyler().setSizeVariant(ControlSizeVariant.REGULAR).style(choice5); grid.add(combo6, 7, 3); ChoiceBox<String> choice6 = new ChoiceBox<String>(); choice6.setItems(items); choice6.getSelectionModel().selectFirst(); AquaFx.createChoiceBoxStyler().setSizeVariant(ControlSizeVariant.SMALL).style(choice6); grid.add(combo7, 7, 4); ChoiceBox<String> choice7 = new ChoiceBox<String>(); choice7.setItems(items); choice7.getSelectionModel().selectFirst(); AquaFx.createChoiceBoxStyler().setSizeVariant(ControlSizeVariant.MINI).style(choice7);