Person(String firstName, String lastName, int age) { this.firstName = new SimpleStringProperty(firstName); this.lastName = new SimpleStringProperty(lastName); this.age = new SimpleIntegerProperty(age); }
public final ObjectProperty<Color> toValueProperty() { if (toValue == null) { toValue = new SimpleObjectProperty<>(this, "toValue", DEFAULT_TO_VALUE); } return toValue; }
/** * 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); }
BooleanProperty target = new SimpleBooleanProperty();//value is false BooleanProperty source = new SimpleBooleanProperty(true);//value is true target.bindBidirectional(source);//target.get() will now return true target.set(false);//both values are now false source.set(true);//both values are now true
/** * @return the current slider value factory */ public final Callback<JFXSlider, StringBinding> getValueFactory() { return valueFactory == null ? null : valueFactory.get(); }
/** * If you want the {@code primaryStage}'s title and the {@code JFXDecorator}'s title to be different, then * go ahead and use this method. * <p> * By default, this title property is bound to the {@code primaryStage}'s title property-so merely setting the * {@code primaryStage}'s title, will set the {@code JFXDecorator}'s title. * */ public void setTitle(String title) { this.title.unbind(); this.title.set(title); }
User(String department, String age, String userName) { this.department = new SimpleStringProperty(department); this.userName = new SimpleStringProperty(userName); this.age = new SimpleStringProperty(age); } }
/*************************************************************************** * * * public properties * * * **************************************************************************/ public double getDefaultDrawerSize() { return defaultSizeProperty.get(); }
/** * svg color property */ public void setFill(Paint fill) { this.fill.setValue(fill); }
private void removeListeners(Tab tab) { tab.selectedProperty().removeListener(weakTabSelectedListener); tab.contentProperty().removeListener(weakTabContentListener); } }
@Override public ReadOnlyObjectProperty<ValidatorBase> activeValidatorProperty() { return this.activeValidator.getReadOnlyProperty(); }
@Override public ValidatorBase getActiveValidator() { return activeValidator == null ? null : activeValidator.get(); }
@Override public boolean isSettable(JFXAutoCompletePopup.CSSBridge bridge) { return bridge.popup.cellLimit == null || !bridge.popup.cellLimit.isBound(); } @Override public StyleableProperty<Number> getStyleableProperty(JFXAutoCompletePopup.CSSBridge bridge) {
public ObjectProperty<BiFunction<JFXChipView<T>, T, JFXChip<T>>> chipFactoryProperty() { if (chipFactory == null) { chipFactory = new SimpleObjectProperty<>(this, "chipFactory"); } return chipFactory; }
private Employee(String name, String department) { this.name = new SimpleStringProperty(name); this.department = new SimpleStringProperty(department); }
public final ObjectProperty<Callback<JFXSlider, StringBinding>> valueFactoryProperty() { if (valueFactory == null) { valueFactory = new SimpleObjectProperty<>(this, "valueFactory"); } return valueFactory; }
public final ObjectProperty<Region> regionProperty() { if (region == null) { region = new SimpleObjectProperty<>(this, "region", null); } return region; }
public final ObjectProperty<Color> fromValueProperty() { if (fromValue == null) { fromValue = new SimpleObjectProperty<>(this, "fromValue", DEFAULT_FROM_VALUE); } return fromValue; }
public ObjectProperty<Function<T, T>> selectionHandlerProperty() { if (selectionHandler == null) { selectionHandler = new SimpleObjectProperty<>(this, "selectionHandler"); } return selectionHandler; }