Package com.dua3.utility.fx.controls
Class InputControlContainer
java.lang.Object
com.dua3.utility.fx.controls.InputControlContainer
- All Implemented Interfaces:
InputControl<Void>
A container class for managing and organizing
InputControl components that are grouped together
and share a single error decorator.-
Property Summary
Properties inherited from interface com.dua3.utility.fx.controls.InputControl
error, required, valid, value -
Field Summary
Fields inherited from interface com.dua3.utility.fx.controls.InputControl
CSS_REQUIRED_INPUT, INVALID_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionInputControlContainer(javafx.geometry.Orientation orientation) Constructs an InputControlContainer with the specified orientation. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(InputControl<?> ic) Adds the specified InputControl to the container.voidadd(javafx.scene.Node node) Adds the specified node to the container.javafx.scene.Nodenode()Get theNodefor this input element.state()Return theInputControlStateinstance for this 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
errorProperty, get, init, isEmpty, isRequired, isValid, requiredProperty, reset, set, validProperty, valueProperty
-
Constructor Details
-
InputControlContainer
public InputControlContainer(javafx.geometry.Orientation orientation) Constructs an InputControlContainer with the specified orientation. This container is responsible for managing a group ofInputControlcomponents and their validation state.- Parameters:
orientation- the orientation of the container; must be eitherOrientation.HORIZONTALorOrientation.VERTICAL. Determines whether the controls are arranged horizontally or vertically.
-
-
Method Details
-
add
Adds the specified InputControl to the container.- Parameters:
ic- theInputControlinstance to be added; must not be null
-
add
public void add(javafx.scene.Node node) Adds the specified node to the container.- Parameters:
node- the node to be added; must not be null
-
state
Description copied from interface:InputControlReturn theInputControlStateinstance for this control.- Specified by:
statein interfaceInputControl<Void>- Returns:
- the State insstance that tracks this control's state
-
node
public javafx.scene.Node node()Description copied from interface:InputControlGet theNodefor this input element.- Specified by:
nodein interfaceInputControl<Void>- Returns:
- the node
-