/** * set a speficed runnable when clicking on the close button * * @param onCloseButtonAction runnable to be executed */ public void setOnCloseButtonAction(Runnable onCloseButtonAction) { this.onCloseButtonAction.set(onCloseButtonAction); }
public void setAnimation(JFXAlertAnimation animation) { this.animation.set(animation); }
public void setPaint(Paint paint) { this.paint.set(paint); } }
@Deprecated public void setGroupnode(Node node) { this.groupnode.set(node); }
public final void setRegion(Region value) { if ((region != null) || (value != null /* DEFAULT_SHAPE */)) { regionProperty().set(value); } }
public final void setFromValue(Color value) { if ((fromValue != null) || (value != null /* DEFAULT_FROM_VALUE */)) { fromValueProperty().set(value); } }
/** * set the ripple color * * @param ripplerFill the color of the ripple effect */ public final void setRipplerFill(final Paint ripplerFill) { this.ripplerFillProperty().set(ripplerFill); }
/** * sets custom string binding for the slider text value * * @param valueFactory a callback to create the string value binding */ public final void setValueFactory(final Callback<JFXSlider, StringBinding> valueFactory) { this.valueFactoryProperty().set(valueFactory); }
public final void setToValue(Color value) { if ((toValue != null) || (value != null /* DEFAULT_TO_VALUE */)) { toValueProperty().set(value); } }
/** * sets the layout mode * * @param layoutMode to be used, either MASONRY or BIN_PACKING */ public final void setLayoutMode(final LayoutMode layoutMode) { this.layoutModeProperty().set(layoutMode); }
public final void setSuggestionsCellFactory( final javafx.util.Callback<ListView<T>, ListCell<T>> suggestionsCellFactory) { this.suggestionsCellFactoryProperty().set(suggestionsCellFactory); }
public final void setToggleNode(final Control toggleNode) { this.toggleNodeProperty().set(toggleNode); }
public final void setPredicate(final Predicate<TreeItem<S>> predicate) { this.predicateProperty().set(predicate); }
public void setSelectionHandler(Function<T, T> selectionHandler) { selectionHandlerProperty().set(selectionHandler); }
public final void setConverter(StringConverter<T> value) { converterProperty().set(value); }
public final void setDuration(Duration value) { if ((duration != null) || (!DEFAULT_DURATION.equals(value))) { durationProperty().set(value); } }
final void setGlyph(SVGGlyph glyph) { glyph.setSize(sizeSlider.getValue()); this.glyph.set(glyph); } }
public final void setContentNode(final Node content) { this.contentNodeProperty().set(content); content.setOpacity(0); }
private void goToDate(LocalDate date, boolean focusDayCell) { if (isValidDate(datePicker.getChronology(), date)) { selectedYearMonth.set(YearMonth.from(date)); if (focusDayCell) { findDayCellOfDate(date).requestFocus(); } } }
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); }