Package com.dua3.utility.fx.controls
Klasse ChoiceInputControl<T>
java.lang.Object
com.dua3.utility.fx.controls.ChoiceInputControl<T>
- Typparameter:
T- the input result type
- Alle implementierten Schnittstellen:
InputControl<T>
Interface for an input field.
-
Eigenschaftsübersicht
EigenschaftenTypEigenschaftBeschreibungProvides a read-only property representing the error message for this input control.Provides a read-only property representing the validity of the input.Provides the property representing the value of this input control. -
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.dua3.utility.fx.controls.InputControl
InputControl.State<R> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungChoiceInputControl(com.dua3.utility.options.ChoiceOption<T> option, Supplier<? extends @Nullable T> dfltValue) Constructs a ChoiceInputControl with the given options and default value supplier. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungProvides a read-only property representing the error message for this input control.node()Get theNodefor this input element.voidreset()Reset value to defaultProvides a read-only property representing the validity of the input.Provides the property representing the value of this input control.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden com.dua3.utility.fx.controls.InputControl
get, init, isValid, set
-
Eigenschaftsdetails
-
value
- Angegeben von:
valuePropertyin SchnittstelleInputControl<T>- Gibt zurück:
- the property containing the current value
- Siehe auch:
-
valid
- Angegeben von:
validPropertyin SchnittstelleInputControl<T>- Gibt zurück:
- a ReadOnlyBooleanProperty that is true if the input is valid and false otherwise
- Siehe auch:
-
error
- Angegeben von:
errorPropertyin SchnittstelleInputControl<T>- Gibt zurück:
- a ReadOnlyStringProperty containing the error message if there is a validation error, otherwise empty
- Siehe auch:
-
-
Konstruktordetails
-
ChoiceInputControl
public ChoiceInputControl(com.dua3.utility.options.ChoiceOption<T> option, Supplier<? extends @Nullable T> dfltValue) Constructs a ChoiceInputControl with the given options and default value supplier.- Parameter:
option- the ChoiceOption containing possible values for the input controldfltValue- a Supplier that provides the default value for the input control
-
-
Methodendetails
-
node
Beschreibung aus Schnittstelle kopiert:InputControlGet theNodefor this input element.- Angegeben von:
nodein SchnittstelleInputControl<T>- Gibt zurück:
- the node
-
valueProperty
Beschreibung aus Schnittstelle kopiert:InputControlProvides the property representing the value of this input control.- Angegeben von:
valuePropertyin SchnittstelleInputControl<T>- Gibt zurück:
- die Eigenschaft
value
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:InputControlReset value to default- Angegeben von:
resetin SchnittstelleInputControl<T>
-
validProperty
Beschreibung aus Schnittstelle kopiert:InputControlProvides a read-only property representing the validity of the input.- Angegeben von:
validPropertyin SchnittstelleInputControl<T>- Gibt zurück:
- die Eigenschaft
valid
-
errorProperty
Beschreibung aus Schnittstelle kopiert:InputControlProvides a read-only property representing the error message for this input control.This property contains an error message if the input is invalid, otherwise it is empty.
- Angegeben von:
errorPropertyin SchnittstelleInputControl<T>- Gibt zurück:
- die Eigenschaft
error
-