Module com.dua3.utility.fx.controls
Package com.dua3.utility.fx.controls
Class SimpleInputControl<C extends @NonNull Control,R>
java.lang.Object
com.dua3.utility.fx.controls.SimpleInputControl<C,R>
- Type Parameters:
C- the type of the control, which must extend from ControlR- the type of the value held by the input control
- All Implemented Interfaces:
InputControl<R>
public class SimpleInputControl<C extends @NonNull Control,R>
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.
-
Property Summary
PropertiesTypePropertyDescriptionProvides 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. -
Nested Class Summary
Nested classes/interfaces inherited from interface com.dua3.utility.fx.controls.InputControl
InputControl.State<R> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.dua3.utility.fx.controls.InputControl
get, init, isValid, set
-
Property Details
-
value
- Specified by:
valuePropertyin interfaceInputControl<C extends @NonNull Control>
-
valid
- Specified by:
validPropertyin interfaceInputControl<C extends @NonNull Control>- See Also:
-
error
- Specified by:
errorPropertyin interfaceInputControl<C extends @NonNull Control>
-
-
Constructor Details
-
SimpleInputControl
-
-
Method Details
-
node
Description copied from interface:InputControlGet theNodefor this input element.- Specified by:
nodein interfaceInputControl<C extends @NonNull Control>- Returns:
- the node
-
valueProperty
Description copied from interface:InputControlProvides the property representing the value of this input control.- Specified by:
valuePropertyin interfaceInputControl<C extends @NonNull Control>
-
reset
public void reset()Description copied from interface:InputControlReset value to default- Specified by:
resetin interfaceInputControl<C extends @NonNull Control>
-
validProperty
Description copied from interface:InputControlProvides a read-only property representing the validity of the input.- Specified by:
validPropertyin interfaceInputControl<C extends @NonNull Control>- See Also:
-
errorProperty
Description copied from interface: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.
- Specified by:
errorPropertyin interfaceInputControl<C extends @NonNull Control>
-