// @formatter:off /* * Unlicensed, generated by javafx.ftl */ package javafx.scene.control; /** * {@link SpinnerValueFactory.IntegerSpinnerValueFactory}建構器。 * * @author JarReflectionDataLoader-1.0.0 * @version jfxrt.jar * @param <Z> 要建構的物件型態(需繼承{@link SpinnerValueFactory.IntegerSpinnerValueFactory}) * @param <B> 建構器本身的型態(需繼承{@link SpinnerValueFactory.IntegerSpinnerValueFactoryMaker}) */ @javax.annotation.Generated("Generated by javafx.ftl") @SuppressWarnings("all") public class SpinnerValueFactory_IntegerSpinnerValueFactoryMaker<Z extends SpinnerValueFactory.IntegerSpinnerValueFactory, B extends SpinnerValueFactory_IntegerSpinnerValueFactoryMaker<Z, B>> extends javafx.scene.control.SpinnerValueFactoryMaker<java.lang.Integer, Z, B> implements SpinnerValueFactory_IntegerSpinnerValueFactoryMakerExt<Z, B> { private boolean hasAmountToStepBy; private int valAmountToStepBy; private boolean hasMax; private int valMax; private boolean hasMin; private int valMin; private boolean bound1AmountToStepBy; private boolean bound2AmountToStepBy; private javafx.beans.value.ObservableValue<? extends Number> obsrv1AmountToStepBy; private javafx.beans.property.Property<Number> obsrv2AmountToStepBy; private boolean bound1Max; private boolean bound2Max; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Max; private javafx.beans.property.Property<Number> obsrv2Max; private boolean bound1Min; private boolean bound2Min; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Min; private javafx.beans.property.Property<Number> obsrv2Min; @Override public void applyTo(Z instance) { super.applyTo(instance); if (this.hasAmountToStepBy) instance.setAmountToStepBy(this.valAmountToStepBy); if (this.hasMax) instance.setMax(this.valMax); if (this.hasMin) instance.setMin(this.valMin); if (this.bound1AmountToStepBy) instance.amountToStepByProperty().bind(this.obsrv1AmountToStepBy); if (this.bound2AmountToStepBy) instance.amountToStepByProperty().bindBidirectional(this.obsrv2AmountToStepBy); if (this.bound1Max) instance.maxProperty().bind(this.obsrv1Max); if (this.bound2Max) instance.maxProperty().bindBidirectional(this.obsrv2Max); if (this.bound1Min) instance.minProperty().bind(this.obsrv1Min); if (this.bound2Min) instance.minProperty().bindBidirectional(this.obsrv2Min); } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#setAmountToStepBy(int)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B amountToStepBy(int value) { this.hasAmountToStepBy = true; this.valAmountToStepBy = value; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#setMax(int)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B max(int value) { this.hasMax = true; this.valMax = value; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#setMin(int)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B min(int value) { this.hasMin = true; this.valMin = value; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#amountToStepByProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindAmountToStepBy(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1AmountToStepBy = true; this.obsrv1AmountToStepBy = source; this.bound2AmountToStepBy = false; this.obsrv2AmountToStepBy = null; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#amountToStepByProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalAmountToStepBy(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1AmountToStepBy = false; this.obsrv1AmountToStepBy = null; this.bound2AmountToStepBy = true; this.obsrv2AmountToStepBy = source; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#maxProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindMax(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Max = true; this.obsrv1Max = source; this.bound2Max = false; this.obsrv2Max = null; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#maxProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalMax(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Max = false; this.obsrv1Max = null; this.bound2Max = true; this.obsrv2Max = source; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#minProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindMin(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Min = true; this.obsrv1Min = source; this.bound2Min = false; this.obsrv2Min = null; return (B) this; } /** * 設定屬性{@link SpinnerValueFactory.IntegerSpinnerValueFactory#minProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalMin(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Min = false; this.obsrv1Min = null; this.bound2Min = true; this.obsrv2Min = source; return (B) this; } /** * 建構{@link SpinnerValueFactory.IntegerSpinnerValueFactory}物件。 * * @return 新的{@link SpinnerValueFactory.IntegerSpinnerValueFactory}物件實體 */ @SuppressWarnings("unchecked") public SpinnerValueFactory.IntegerSpinnerValueFactory build(int arg0, int arg1) { SpinnerValueFactory.IntegerSpinnerValueFactory instance = new SpinnerValueFactory.IntegerSpinnerValueFactory(arg0, arg1); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link SpinnerValueFactory.IntegerSpinnerValueFactory}物件。 * * @return 新的{@link SpinnerValueFactory.IntegerSpinnerValueFactory}物件實體 */ @SuppressWarnings("unchecked") public SpinnerValueFactory.IntegerSpinnerValueFactory build(int arg0, int arg1, int arg2) { SpinnerValueFactory.IntegerSpinnerValueFactory instance = new SpinnerValueFactory.IntegerSpinnerValueFactory(arg0, arg1, arg2); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link SpinnerValueFactory.IntegerSpinnerValueFactory}物件。 * * @return 新的{@link SpinnerValueFactory.IntegerSpinnerValueFactory}物件實體 */ @SuppressWarnings("unchecked") public SpinnerValueFactory.IntegerSpinnerValueFactory build(int arg0, int arg1, int arg2, int arg3) { SpinnerValueFactory.IntegerSpinnerValueFactory instance = new SpinnerValueFactory.IntegerSpinnerValueFactory(arg0, arg1, arg2, arg3); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } }