Package com.dua3.utility.fx.controls
Klasse SimpleInputControl<C extends Control,R extends @Nullable Object>
java.lang.Object
com.dua3.utility.fx.controls.SimpleInputControl<C,R>
- Typparameter:
C- the type of the control, which must extend from ControlR- the type of the value held by the input control
- Alle implementierten Schnittstellen:
InputControl<R>
public class SimpleInputControl<C extends Control,R extends @Nullable Object>
extends Object
implements InputControl<R>
SimpleInputControl is a generic class designed to manage an input control element and its state.
It provides functionalities to reset the control's value, validate input, and obtain error messages.
-
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
Konstruktoren -
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<C extends Control>- Gibt zurück:
- the property containing the current value
- Siehe auch:
-
valid
- Angegeben von:
validPropertyin SchnittstelleInputControl<C extends Control>- Gibt zurück:
- a ReadOnlyBooleanProperty that is true if the input is valid and false otherwise
- Siehe auch:
-
error
- Angegeben von:
errorPropertyin SchnittstelleInputControl<C extends Control>- Gibt zurück:
- a ReadOnlyStringProperty containing the error message if there is a validation error, otherwise empty
- Siehe auch:
-
-
Konstruktordetails
-
SimpleInputControl
-
-
Methodendetails
-
node
Beschreibung aus Schnittstelle kopiert:InputControlGet theNodefor this input element.- Angegeben von:
nodein SchnittstelleInputControl<C extends Control>- Gibt zurück:
- the node
-
valueProperty
Beschreibung aus Schnittstelle kopiert:InputControlProvides the property representing the value of this input control.- Angegeben von:
valuePropertyin SchnittstelleInputControl<C extends Control>- Gibt zurück:
- die Eigenschaft
value
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:InputControlReset value to default- Angegeben von:
resetin SchnittstelleInputControl<C extends Control>
-
validProperty
Beschreibung aus Schnittstelle kopiert:InputControlProvides a read-only property representing the validity of the input.- Angegeben von:
validPropertyin SchnittstelleInputControl<C extends Control>- Gibt zurück:
- die Eigenschaft
valid - Siehe auch:
-
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<C extends Control>- Gibt zurück:
- die Eigenschaft
error
-