public void setControl(Control control) { maxWidthProperty().bind(control.maxWidthProperty()); prefWidthProperty().bind(control.prefWidthProperty()); prefHeightProperty().bind(control.prefHeightProperty()); errorContainer.setMaxWidth(control.getMaxWidth() > -1 ? control.getMaxWidth() : control.getPrefWidth()); errorContainer.prefWidthProperty().bind(control.widthProperty()); errorContainer.prefHeightProperty().bind(control.heightProperty()); getChildren().clear(); getChildren().add(control); getChildren().add(errorContainer); this.controlProperty.set(control); }
HBox.setHgrow(cancel, Priority.SOMETIMES); filler.setMaxWidth(Double.MAX_VALUE); fillerContainer.setMaxWidth(Double.MAX_VALUE);
/** * @{inheritedDoc} */ @Override public void build(IInputComponentWrapper inputComponentWrapper) { super.build(inputComponentWrapper); // NodeHelper.styleClassAddAll(label, getConfiguration(), "viewStyleClass", "form-info-value"); process("/Application"); if(AbstractApplicationRunner.isDesktop()) { // TODO HANDLE TOOLTIP b.setMaxWidth(400); b.setAlignment(Pos.CENTER_RIGHT); } inputComponentWrapper.currentInternalValueProperty().addListener((ChangeListener<String>) (observable, oldValue, newValue) -> { //label.setText(((StringConverter) inputComponentWrapper.getConverter()).toDisplay(newValue)); }); }
button.setOnAction(e -> hbox.getChildren().add(new Label("Label "+(++count)))); hbox.setMaxWidth(Double.MAX_VALUE);
/** * @{inheritedDoc} */ @Override public void build(IInputComponentWrapper inputComponentWrapper) { super.build(inputComponentWrapper); // NodeHelper.styleClassAddAll(label, getConfiguration(), "viewStyleClass", "form-info-value"); process("/Application"); if(AbstractApplicationRunner.isDesktop()) { // TODO HANDLE TOOLTIP b.setMaxWidth(400); b.setAlignment(Pos.CENTER_RIGHT); } inputComponentWrapper.currentInternalValueProperty().addListener((ChangeListener<String>) (observable, oldValue, newValue) -> { //label.setText(((StringConverter) inputComponentWrapper.getConverter()).toDisplay(newValue)); }); }
public void setControl(Control control) { maxWidthProperty().bind(control.maxWidthProperty()); prefWidthProperty().bind(control.prefWidthProperty()); prefHeightProperty().bind(control.prefHeightProperty()); errorContainer.setMaxWidth(control.getMaxWidth() > -1 ? control.getMaxWidth() : control.getPrefWidth()); errorContainer.prefWidthProperty().bind(control.widthProperty()); errorContainer.prefHeightProperty().bind(control.heightProperty()); getChildren().clear(); getChildren().add(control); getChildren().add(errorContainer); this.controlProperty.set(control); }
numbers.getChildren().addAll(labels); numbers.setPadding(new Insets(15)); numbers.setMaxWidth(HBox.USE_PREF_SIZE);