// @formatter:off /* * Unlicensed, generated by javafx.ftl */ package javafx.scene.layout; /** * {@link FlowPane}建構器。 * * @author JarReflectionDataLoader-1.0.0 * @version jfxrt.jar * @param <Z> 要建構的物件型態(需繼承{@link FlowPane}) * @param <B> 建構器本身的型態(需繼承{@link FlowPaneMaker}) */ @javax.annotation.Generated("Generated by javafx.ftl") @SuppressWarnings("all") public class FlowPaneMaker<Z extends FlowPane, B extends FlowPaneMaker<Z, B>> extends javafx.scene.layout.PaneMaker<Z, B> implements FlowPaneMakerExt<Z, B> { private boolean hasAlignment; private javafx.geometry.Pos valAlignment; private boolean hasColumnHalignment; private javafx.geometry.HPos valColumnHalignment; private boolean hasHgap; private double valHgap; private boolean hasOrientation; private javafx.geometry.Orientation valOrientation; private boolean hasPrefWrapLength; private double valPrefWrapLength; private boolean hasRowValignment; private javafx.geometry.VPos valRowValignment; private boolean hasVgap; private double valVgap; private boolean bound1Alignment; private boolean bound2Alignment; private javafx.beans.value.ObservableValue<? extends javafx.geometry.Pos> obsrv1Alignment; private javafx.beans.property.Property<javafx.geometry.Pos> obsrv2Alignment; private boolean bound1ColumnHalignment; private boolean bound2ColumnHalignment; private javafx.beans.value.ObservableValue<? extends javafx.geometry.HPos> obsrv1ColumnHalignment; private javafx.beans.property.Property<javafx.geometry.HPos> obsrv2ColumnHalignment; private boolean bound1Hgap; private boolean bound2Hgap; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Hgap; private javafx.beans.property.Property<Number> obsrv2Hgap; private boolean bound1Orientation; private boolean bound2Orientation; private javafx.beans.value.ObservableValue<? extends javafx.geometry.Orientation> obsrv1Orientation; private javafx.beans.property.Property<javafx.geometry.Orientation> obsrv2Orientation; private boolean bound1PrefWrapLength; private boolean bound2PrefWrapLength; private javafx.beans.value.ObservableValue<? extends Number> obsrv1PrefWrapLength; private javafx.beans.property.Property<Number> obsrv2PrefWrapLength; private boolean bound1RowValignment; private boolean bound2RowValignment; private javafx.beans.value.ObservableValue<? extends javafx.geometry.VPos> obsrv1RowValignment; private javafx.beans.property.Property<javafx.geometry.VPos> obsrv2RowValignment; private boolean bound1Vgap; private boolean bound2Vgap; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Vgap; private javafx.beans.property.Property<Number> obsrv2Vgap; @Override public void applyTo(Z instance) { super.applyTo(instance); if (this.hasAlignment) instance.setAlignment(this.valAlignment); if (this.hasColumnHalignment) instance.setColumnHalignment(this.valColumnHalignment); if (this.hasHgap) instance.setHgap(this.valHgap); if (this.hasOrientation) instance.setOrientation(this.valOrientation); if (this.hasPrefWrapLength) instance.setPrefWrapLength(this.valPrefWrapLength); if (this.hasRowValignment) instance.setRowValignment(this.valRowValignment); if (this.hasVgap) instance.setVgap(this.valVgap); if (this.bound1Alignment) instance.alignmentProperty().bind(this.obsrv1Alignment); if (this.bound2Alignment) instance.alignmentProperty().bindBidirectional(this.obsrv2Alignment); if (this.bound1ColumnHalignment) instance.columnHalignmentProperty().bind(this.obsrv1ColumnHalignment); if (this.bound2ColumnHalignment) instance.columnHalignmentProperty().bindBidirectional(this.obsrv2ColumnHalignment); if (this.bound1Hgap) instance.hgapProperty().bind(this.obsrv1Hgap); if (this.bound2Hgap) instance.hgapProperty().bindBidirectional(this.obsrv2Hgap); if (this.bound1Orientation) instance.orientationProperty().bind(this.obsrv1Orientation); if (this.bound2Orientation) instance.orientationProperty().bindBidirectional(this.obsrv2Orientation); if (this.bound1PrefWrapLength) instance.prefWrapLengthProperty().bind(this.obsrv1PrefWrapLength); if (this.bound2PrefWrapLength) instance.prefWrapLengthProperty().bindBidirectional(this.obsrv2PrefWrapLength); if (this.bound1RowValignment) instance.rowValignmentProperty().bind(this.obsrv1RowValignment); if (this.bound2RowValignment) instance.rowValignmentProperty().bindBidirectional(this.obsrv2RowValignment); if (this.bound1Vgap) instance.vgapProperty().bind(this.obsrv1Vgap); if (this.bound2Vgap) instance.vgapProperty().bindBidirectional(this.obsrv2Vgap); } /** * 設定屬性{@link FlowPane#setAlignment(javafx.geometry.Pos)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B alignment(javafx.geometry.Pos value) { this.hasAlignment = true; this.valAlignment = value; return (B) this; } /** * 設定屬性{@link FlowPane#setColumnHalignment(javafx.geometry.HPos)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B columnHalignment(javafx.geometry.HPos value) { this.hasColumnHalignment = true; this.valColumnHalignment = value; return (B) this; } /** * 設定屬性{@link FlowPane#setHgap(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B hgap(double value) { this.hasHgap = true; this.valHgap = value; return (B) this; } /** * 設定屬性{@link FlowPane#setOrientation(javafx.geometry.Orientation)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B orientation(javafx.geometry.Orientation value) { this.hasOrientation = true; this.valOrientation = value; return (B) this; } /** * 設定屬性{@link FlowPane#setPrefWrapLength(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B prefWrapLength(double value) { this.hasPrefWrapLength = true; this.valPrefWrapLength = value; return (B) this; } /** * 設定屬性{@link FlowPane#setRowValignment(javafx.geometry.VPos)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B rowValignment(javafx.geometry.VPos value) { this.hasRowValignment = true; this.valRowValignment = value; return (B) this; } /** * 設定屬性{@link FlowPane#setVgap(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B vgap(double value) { this.hasVgap = true; this.valVgap = value; return (B) this; } /** * 設定屬性{@link FlowPane#alignmentProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindAlignment(javafx.beans.value.ObservableValue<? extends javafx.geometry.Pos> source) { java.util.Objects.requireNonNull(source); this.bound1Alignment = true; this.obsrv1Alignment = source; this.bound2Alignment = false; this.obsrv2Alignment = null; return (B) this; } /** * 設定屬性{@link FlowPane#alignmentProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalAlignment(javafx.beans.property.Property<javafx.geometry.Pos> source) { java.util.Objects.requireNonNull(source); this.bound1Alignment = false; this.obsrv1Alignment = null; this.bound2Alignment = true; this.obsrv2Alignment = source; return (B) this; } /** * 設定屬性{@link FlowPane#columnHalignmentProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindColumnHalignment(javafx.beans.value.ObservableValue<? extends javafx.geometry.HPos> source) { java.util.Objects.requireNonNull(source); this.bound1ColumnHalignment = true; this.obsrv1ColumnHalignment = source; this.bound2ColumnHalignment = false; this.obsrv2ColumnHalignment = null; return (B) this; } /** * 設定屬性{@link FlowPane#columnHalignmentProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalColumnHalignment(javafx.beans.property.Property<javafx.geometry.HPos> source) { java.util.Objects.requireNonNull(source); this.bound1ColumnHalignment = false; this.obsrv1ColumnHalignment = null; this.bound2ColumnHalignment = true; this.obsrv2ColumnHalignment = source; return (B) this; } /** * 設定屬性{@link FlowPane#hgapProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindHgap(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Hgap = true; this.obsrv1Hgap = source; this.bound2Hgap = false; this.obsrv2Hgap = null; return (B) this; } /** * 設定屬性{@link FlowPane#hgapProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalHgap(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Hgap = false; this.obsrv1Hgap = null; this.bound2Hgap = true; this.obsrv2Hgap = source; return (B) this; } /** * 設定屬性{@link FlowPane#orientationProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindOrientation(javafx.beans.value.ObservableValue<? extends javafx.geometry.Orientation> source) { java.util.Objects.requireNonNull(source); this.bound1Orientation = true; this.obsrv1Orientation = source; this.bound2Orientation = false; this.obsrv2Orientation = null; return (B) this; } /** * 設定屬性{@link FlowPane#orientationProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalOrientation(javafx.beans.property.Property<javafx.geometry.Orientation> source) { java.util.Objects.requireNonNull(source); this.bound1Orientation = false; this.obsrv1Orientation = null; this.bound2Orientation = true; this.obsrv2Orientation = source; return (B) this; } /** * 設定屬性{@link FlowPane#prefWrapLengthProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindPrefWrapLength(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1PrefWrapLength = true; this.obsrv1PrefWrapLength = source; this.bound2PrefWrapLength = false; this.obsrv2PrefWrapLength = null; return (B) this; } /** * 設定屬性{@link FlowPane#prefWrapLengthProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalPrefWrapLength(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1PrefWrapLength = false; this.obsrv1PrefWrapLength = null; this.bound2PrefWrapLength = true; this.obsrv2PrefWrapLength = source; return (B) this; } /** * 設定屬性{@link FlowPane#rowValignmentProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindRowValignment(javafx.beans.value.ObservableValue<? extends javafx.geometry.VPos> source) { java.util.Objects.requireNonNull(source); this.bound1RowValignment = true; this.obsrv1RowValignment = source; this.bound2RowValignment = false; this.obsrv2RowValignment = null; return (B) this; } /** * 設定屬性{@link FlowPane#rowValignmentProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalRowValignment(javafx.beans.property.Property<javafx.geometry.VPos> source) { java.util.Objects.requireNonNull(source); this.bound1RowValignment = false; this.obsrv1RowValignment = null; this.bound2RowValignment = true; this.obsrv2RowValignment = source; return (B) this; } /** * 設定屬性{@link FlowPane#vgapProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindVgap(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Vgap = true; this.obsrv1Vgap = source; this.bound2Vgap = false; this.obsrv2Vgap = null; return (B) this; } /** * 設定屬性{@link FlowPane#vgapProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalVgap(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Vgap = false; this.obsrv1Vgap = null; this.bound2Vgap = true; this.obsrv2Vgap = source; return (B) this; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @Override @SuppressWarnings("unchecked") public FlowPane build() { FlowPane instance = new FlowPane(); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(javafx.geometry.Orientation arg0) { FlowPane instance = new FlowPane(arg0); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(javafx.scene.Node[] arg0) { FlowPane instance = new FlowPane(arg0); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(double arg0, double arg1) { FlowPane instance = new FlowPane(arg0, arg1); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(javafx.geometry.Orientation arg0, javafx.scene.Node[] arg1) { FlowPane instance = new FlowPane(arg0, arg1); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(double arg0, double arg1, javafx.scene.Node[] arg2) { FlowPane instance = new FlowPane(arg0, arg1, arg2); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(javafx.geometry.Orientation arg0, double arg1, double arg2) { FlowPane instance = new FlowPane(arg0, arg1, arg2); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FlowPane}物件。 * * @return 新的{@link FlowPane}物件實體 */ @SuppressWarnings("unchecked") public FlowPane build(javafx.geometry.Orientation arg0, double arg1, double arg2, javafx.scene.Node[] arg3) { FlowPane instance = new FlowPane(arg0, arg1, arg2, arg3); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } }