// @formatter:off
/*
* Unlicensed, generated by javafx.ftl
*/
package javafx.scene.control;
/**
* {@link ComboBoxBase}建構器。
*
* @author JarReflectionDataLoader-1.0.0
* @version jfxrt.jar
* @param <Z> 要建構的物件型態(需繼承{@link ComboBoxBase})
* @param <B> 建構器本身的型態(需繼承{@link ComboBoxBaseMaker})
*/
@javax.annotation.Generated("Generated by javafx.ftl")
@SuppressWarnings("all")
public class ComboBoxBaseMaker<T extends java.lang.Object, Z extends ComboBoxBase<T>, B extends ComboBoxBaseMaker<T, Z, B>>
extends javafx.scene.control.ControlMaker<Z, B>
implements ComboBoxBaseMakerExt<T, Z, B>
{
private boolean hasEditable;
private boolean valEditable;
private boolean hasOnAction;
private javafx.event.EventHandler<javafx.event.ActionEvent> valOnAction;
private boolean hasOnHidden;
private javafx.event.EventHandler<javafx.event.Event> valOnHidden;
private boolean hasOnHiding;
private javafx.event.EventHandler<javafx.event.Event> valOnHiding;
private boolean hasOnShowing;
private javafx.event.EventHandler<javafx.event.Event> valOnShowing;
private boolean hasOnShown;
private javafx.event.EventHandler<javafx.event.Event> valOnShown;
private boolean hasPromptText;
private java.lang.String valPromptText;
private boolean hasValue;
private T valValue;
private boolean bound1Armed;
private boolean bound2Armed;
private javafx.beans.value.ObservableValue<? extends Boolean> obsrv1Armed;
private javafx.beans.property.Property<Boolean> obsrv2Armed;
private boolean bound1Editable;
private boolean bound2Editable;
private javafx.beans.value.ObservableValue<? extends Boolean> obsrv1Editable;
private javafx.beans.property.Property<Boolean> obsrv2Editable;
private boolean bound1OnAction;
private boolean bound2OnAction;
private javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.ActionEvent>> obsrv1OnAction;
private javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.ActionEvent>> obsrv2OnAction;
private boolean bound1OnHidden;
private boolean bound2OnHidden;
private javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> obsrv1OnHidden;
private javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> obsrv2OnHidden;
private boolean bound1OnHiding;
private boolean bound2OnHiding;
private javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> obsrv1OnHiding;
private javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> obsrv2OnHiding;
private boolean bound1OnShowing;
private boolean bound2OnShowing;
private javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> obsrv1OnShowing;
private javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> obsrv2OnShowing;
private boolean bound1OnShown;
private boolean bound2OnShown;
private javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> obsrv1OnShown;
private javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> obsrv2OnShown;
private boolean bound1PromptText;
private boolean bound2PromptText;
private javafx.beans.value.ObservableValue<? extends String> obsrv1PromptText;
private javafx.beans.property.Property<String> obsrv2PromptText;
private boolean bound1Value;
private boolean bound2Value;
private javafx.beans.value.ObservableValue<? extends T> obsrv1Value;
private javafx.beans.property.Property<T> obsrv2Value;
@Override
public void applyTo(Z instance)
{
super.applyTo(instance);
if (this.hasEditable)
instance.setEditable(this.valEditable);
if (this.hasOnAction)
instance.setOnAction(this.valOnAction);
if (this.hasOnHidden)
instance.setOnHidden(this.valOnHidden);
if (this.hasOnHiding)
instance.setOnHiding(this.valOnHiding);
if (this.hasOnShowing)
instance.setOnShowing(this.valOnShowing);
if (this.hasOnShown)
instance.setOnShown(this.valOnShown);
if (this.hasPromptText)
instance.setPromptText(this.valPromptText);
if (this.hasValue)
instance.setValue(this.valValue);
if (this.bound1Armed)
instance.armedProperty().bind(this.obsrv1Armed);
if (this.bound2Armed)
instance.armedProperty().bindBidirectional(this.obsrv2Armed);
if (this.bound1Editable)
instance.editableProperty().bind(this.obsrv1Editable);
if (this.bound2Editable)
instance.editableProperty().bindBidirectional(this.obsrv2Editable);
if (this.bound1OnAction)
instance.onActionProperty().bind(this.obsrv1OnAction);
if (this.bound2OnAction)
instance.onActionProperty().bindBidirectional(this.obsrv2OnAction);
if (this.bound1OnHidden)
instance.onHiddenProperty().bind(this.obsrv1OnHidden);
if (this.bound2OnHidden)
instance.onHiddenProperty().bindBidirectional(this.obsrv2OnHidden);
if (this.bound1OnHiding)
instance.onHidingProperty().bind(this.obsrv1OnHiding);
if (this.bound2OnHiding)
instance.onHidingProperty().bindBidirectional(this.obsrv2OnHiding);
if (this.bound1OnShowing)
instance.onShowingProperty().bind(this.obsrv1OnShowing);
if (this.bound2OnShowing)
instance.onShowingProperty().bindBidirectional(this.obsrv2OnShowing);
if (this.bound1OnShown)
instance.onShownProperty().bind(this.obsrv1OnShown);
if (this.bound2OnShown)
instance.onShownProperty().bindBidirectional(this.obsrv2OnShown);
if (this.bound1PromptText)
instance.promptTextProperty().bind(this.obsrv1PromptText);
if (this.bound2PromptText)
instance.promptTextProperty().bindBidirectional(this.obsrv2PromptText);
if (this.bound1Value)
instance.valueProperty().bind(this.obsrv1Value);
if (this.bound2Value)
instance.valueProperty().bindBidirectional(this.obsrv2Value);
}
/**
* 設定屬性{@link ComboBoxBase#setEditable(boolean)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B editable(boolean value)
{
this.hasEditable = true;
this.valEditable = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setOnAction(javafx.event.EventHandler)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B onAction(javafx.event.EventHandler<javafx.event.ActionEvent> value)
{
this.hasOnAction = true;
this.valOnAction = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setOnHidden(javafx.event.EventHandler)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B onHidden(javafx.event.EventHandler<javafx.event.Event> value)
{
this.hasOnHidden = true;
this.valOnHidden = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setOnHiding(javafx.event.EventHandler)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B onHiding(javafx.event.EventHandler<javafx.event.Event> value)
{
this.hasOnHiding = true;
this.valOnHiding = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setOnShowing(javafx.event.EventHandler)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B onShowing(javafx.event.EventHandler<javafx.event.Event> value)
{
this.hasOnShowing = true;
this.valOnShowing = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setOnShown(javafx.event.EventHandler)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B onShown(javafx.event.EventHandler<javafx.event.Event> value)
{
this.hasOnShown = true;
this.valOnShown = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setPromptText(java.lang.String)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B promptText(java.lang.String value)
{
this.hasPromptText = true;
this.valPromptText = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#setValue(T)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B value(T value)
{
this.hasValue = true;
this.valValue = value;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#armedProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindArmed(javafx.beans.value.ObservableValue<? extends Boolean> source)
{
java.util.Objects.requireNonNull(source);
this.bound1Armed = true;
this.obsrv1Armed = source;
this.bound2Armed = false;
this.obsrv2Armed = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#armedProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalArmed(javafx.beans.property.Property<Boolean> source)
{
java.util.Objects.requireNonNull(source);
this.bound1Armed = false;
this.obsrv1Armed = null;
this.bound2Armed = true;
this.obsrv2Armed = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#editableProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindEditable(javafx.beans.value.ObservableValue<? extends Boolean> source)
{
java.util.Objects.requireNonNull(source);
this.bound1Editable = true;
this.obsrv1Editable = source;
this.bound2Editable = false;
this.obsrv2Editable = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#editableProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalEditable(javafx.beans.property.Property<Boolean> source)
{
java.util.Objects.requireNonNull(source);
this.bound1Editable = false;
this.obsrv1Editable = null;
this.bound2Editable = true;
this.obsrv2Editable = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onActionProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindOnAction(javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.ActionEvent>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnAction = true;
this.obsrv1OnAction = source;
this.bound2OnAction = false;
this.obsrv2OnAction = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onActionProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalOnAction(javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.ActionEvent>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnAction = false;
this.obsrv1OnAction = null;
this.bound2OnAction = true;
this.obsrv2OnAction = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onHiddenProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindOnHidden(javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnHidden = true;
this.obsrv1OnHidden = source;
this.bound2OnHidden = false;
this.obsrv2OnHidden = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onHiddenProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalOnHidden(javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnHidden = false;
this.obsrv1OnHidden = null;
this.bound2OnHidden = true;
this.obsrv2OnHidden = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onHidingProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindOnHiding(javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnHiding = true;
this.obsrv1OnHiding = source;
this.bound2OnHiding = false;
this.obsrv2OnHiding = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onHidingProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalOnHiding(javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnHiding = false;
this.obsrv1OnHiding = null;
this.bound2OnHiding = true;
this.obsrv2OnHiding = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onShowingProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindOnShowing(javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnShowing = true;
this.obsrv1OnShowing = source;
this.bound2OnShowing = false;
this.obsrv2OnShowing = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onShowingProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalOnShowing(javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnShowing = false;
this.obsrv1OnShowing = null;
this.bound2OnShowing = true;
this.obsrv2OnShowing = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onShownProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindOnShown(javafx.beans.value.ObservableValue<? extends javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnShown = true;
this.obsrv1OnShown = source;
this.bound2OnShown = false;
this.obsrv2OnShown = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#onShownProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalOnShown(javafx.beans.property.Property<javafx.event.EventHandler<javafx.event.Event>> source)
{
java.util.Objects.requireNonNull(source);
this.bound1OnShown = false;
this.obsrv1OnShown = null;
this.bound2OnShown = true;
this.obsrv2OnShown = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#promptTextProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindPromptText(javafx.beans.value.ObservableValue<? extends String> source)
{
java.util.Objects.requireNonNull(source);
this.bound1PromptText = true;
this.obsrv1PromptText = source;
this.bound2PromptText = false;
this.obsrv2PromptText = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#promptTextProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalPromptText(javafx.beans.property.Property<String> source)
{
java.util.Objects.requireNonNull(source);
this.bound1PromptText = false;
this.obsrv1PromptText = null;
this.bound2PromptText = true;
this.obsrv2PromptText = source;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#valueProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindValue(javafx.beans.value.ObservableValue<? extends T> source)
{
java.util.Objects.requireNonNull(source);
this.bound1Value = true;
this.obsrv1Value = source;
this.bound2Value = false;
this.obsrv2Value = null;
return (B) this;
}
/**
* 設定屬性{@link ComboBoxBase#valueProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalValue(javafx.beans.property.Property<T> source)
{
java.util.Objects.requireNonNull(source);
this.bound1Value = false;
this.obsrv1Value = null;
this.bound2Value = true;
this.obsrv2Value = source;
return (B) this;
}
}