// @formatter:off /* * Unlicensed, generated by javafx.ftl */ package org.controlsfx.dialog; /** * {@link Wizard}建構器。 * * @author JarReflectionDataLoader-1.0.0 * @version controlsfx-8.40.12.jar * @param <Z> 要建構的物件型態(需繼承{@link Wizard}) * @param <B> 建構器本身的型態(需繼承{@link WizardMaker}) */ @javax.annotation.Generated("Generated by javafx.ftl") @SuppressWarnings("all") public class WizardMaker<Z extends Wizard, B extends WizardMaker<Z, B>> extends jxtn.jfx.makers.AbstractMaker<Z, B> implements WizardMakerExt<Z, B> { private boolean hasFlow; private org.controlsfx.dialog.Wizard.Flow valFlow; private boolean hasInvalid; private boolean valInvalid; private boolean hasReadSettings; private boolean valReadSettings; private boolean hasTitle; private java.lang.String valTitle; private boolean hasUserData; private java.lang.Object valUserData; private boolean bound1Flow; private boolean bound2Flow; private javafx.beans.value.ObservableValue<? extends org.controlsfx.dialog.Wizard.Flow> obsrv1Flow; private javafx.beans.property.Property<org.controlsfx.dialog.Wizard.Flow> obsrv2Flow; private boolean bound1Invalid; private boolean bound2Invalid; private javafx.beans.value.ObservableValue<? extends Boolean> obsrv1Invalid; private javafx.beans.property.Property<Boolean> obsrv2Invalid; private boolean bound1ReadSettings; private boolean bound2ReadSettings; private javafx.beans.value.ObservableValue<? extends Boolean> obsrv1ReadSettings; private javafx.beans.property.Property<Boolean> obsrv2ReadSettings; private boolean bound1Result; private boolean bound2Result; private javafx.beans.value.ObservableValue<? extends javafx.scene.control.ButtonType> obsrv1Result; private javafx.beans.property.Property<javafx.scene.control.ButtonType> obsrv2Result; private boolean bound1Title; private boolean bound2Title; private javafx.beans.value.ObservableValue<? extends String> obsrv1Title; private javafx.beans.property.Property<String> obsrv2Title; @Override public void applyTo(Z instance) { super.applyTo(instance); if (this.hasFlow) instance.setFlow(this.valFlow); if (this.hasInvalid) instance.setInvalid(this.valInvalid); if (this.hasReadSettings) instance.setReadSettings(this.valReadSettings); if (this.hasTitle) instance.setTitle(this.valTitle); if (this.hasUserData) instance.setUserData(this.valUserData); if (this.bound1Flow) instance.flowProperty().bind(this.obsrv1Flow); if (this.bound2Flow) instance.flowProperty().bindBidirectional(this.obsrv2Flow); if (this.bound1Invalid) instance.invalidProperty().bind(this.obsrv1Invalid); if (this.bound2Invalid) instance.invalidProperty().bindBidirectional(this.obsrv2Invalid); if (this.bound1ReadSettings) instance.readSettingsProperty().bind(this.obsrv1ReadSettings); if (this.bound2ReadSettings) instance.readSettingsProperty().bindBidirectional(this.obsrv2ReadSettings); if (this.bound1Result) instance.resultProperty().bind(this.obsrv1Result); if (this.bound2Result) instance.resultProperty().bindBidirectional(this.obsrv2Result); if (this.bound1Title) instance.titleProperty().bind(this.obsrv1Title); if (this.bound2Title) instance.titleProperty().bindBidirectional(this.obsrv2Title); } /** * 設定屬性{@link Wizard#setFlow(org.controlsfx.dialog.Wizard.Flow)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B flow(org.controlsfx.dialog.Wizard.Flow value) { this.hasFlow = true; this.valFlow = value; return (B) this; } /** * 設定屬性{@link Wizard#setInvalid(boolean)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B invalid(boolean value) { this.hasInvalid = true; this.valInvalid = value; return (B) this; } /** * 設定屬性{@link Wizard#setReadSettings(boolean)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B readSettings(boolean value) { this.hasReadSettings = true; this.valReadSettings = value; return (B) this; } /** * 設定屬性{@link Wizard#setTitle(java.lang.String)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B title(java.lang.String value) { this.hasTitle = true; this.valTitle = value; return (B) this; } /** * 設定屬性{@link Wizard#setUserData(java.lang.Object)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B userData(java.lang.Object value) { this.hasUserData = true; this.valUserData = value; return (B) this; } /** * 設定屬性{@link Wizard#flowProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindFlow(javafx.beans.value.ObservableValue<? extends org.controlsfx.dialog.Wizard.Flow> source) { java.util.Objects.requireNonNull(source); this.bound1Flow = true; this.obsrv1Flow = source; this.bound2Flow = false; this.obsrv2Flow = null; return (B) this; } /** * 設定屬性{@link Wizard#flowProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalFlow(javafx.beans.property.Property<org.controlsfx.dialog.Wizard.Flow> source) { java.util.Objects.requireNonNull(source); this.bound1Flow = false; this.obsrv1Flow = null; this.bound2Flow = true; this.obsrv2Flow = source; return (B) this; } /** * 設定屬性{@link Wizard#invalidProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindInvalid(javafx.beans.value.ObservableValue<? extends Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1Invalid = true; this.obsrv1Invalid = source; this.bound2Invalid = false; this.obsrv2Invalid = null; return (B) this; } /** * 設定屬性{@link Wizard#invalidProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalInvalid(javafx.beans.property.Property<Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1Invalid = false; this.obsrv1Invalid = null; this.bound2Invalid = true; this.obsrv2Invalid = source; return (B) this; } /** * 設定屬性{@link Wizard#readSettingsProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindReadSettings(javafx.beans.value.ObservableValue<? extends Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1ReadSettings = true; this.obsrv1ReadSettings = source; this.bound2ReadSettings = false; this.obsrv2ReadSettings = null; return (B) this; } /** * 設定屬性{@link Wizard#readSettingsProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalReadSettings(javafx.beans.property.Property<Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1ReadSettings = false; this.obsrv1ReadSettings = null; this.bound2ReadSettings = true; this.obsrv2ReadSettings = source; return (B) this; } /** * 設定屬性{@link Wizard#resultProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindResult(javafx.beans.value.ObservableValue<? extends javafx.scene.control.ButtonType> source) { java.util.Objects.requireNonNull(source); this.bound1Result = true; this.obsrv1Result = source; this.bound2Result = false; this.obsrv2Result = null; return (B) this; } /** * 設定屬性{@link Wizard#resultProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalResult(javafx.beans.property.Property<javafx.scene.control.ButtonType> source) { java.util.Objects.requireNonNull(source); this.bound1Result = false; this.obsrv1Result = null; this.bound2Result = true; this.obsrv2Result = source; return (B) this; } /** * 設定屬性{@link Wizard#titleProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindTitle(javafx.beans.value.ObservableValue<? extends String> source) { java.util.Objects.requireNonNull(source); this.bound1Title = true; this.obsrv1Title = source; this.bound2Title = false; this.obsrv2Title = null; return (B) this; } /** * 設定屬性{@link Wizard#titleProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalTitle(javafx.beans.property.Property<String> source) { java.util.Objects.requireNonNull(source); this.bound1Title = false; this.obsrv1Title = null; this.bound2Title = true; this.obsrv2Title = source; return (B) this; } /** * 建構{@link Wizard}物件。 * * @return 新的{@link Wizard}物件實體 */ @Override @SuppressWarnings("unchecked") public Wizard build() { Wizard instance = new Wizard(); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Wizard}物件。 * * @return 新的{@link Wizard}物件實體 */ @SuppressWarnings("unchecked") public Wizard build(java.lang.Object arg0) { Wizard instance = new Wizard(arg0); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Wizard}物件。 * * @return 新的{@link Wizard}物件實體 */ @SuppressWarnings("unchecked") public Wizard build(java.lang.Object arg0, java.lang.String arg1) { Wizard instance = new Wizard(arg0, arg1); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } }