Class InputControlContainer

java.lang.Object
com.dua3.utility.fx.controls.InputControlContainer
All Implemented Interfaces:
InputControl<Void>

public class InputControlContainer extends Object implements InputControl<Void>
A container class for managing and organizing InputControl components that are grouped together and share a single error decorator.
  • Constructor Details

    • InputControlContainer

      public InputControlContainer(javafx.geometry.Orientation orientation)
      Constructs an InputControlContainer with the specified orientation. This container is responsible for managing a group of InputControl components and their validation state.
      Parameters:
      orientation - the orientation of the container; must be either Orientation.HORIZONTAL or Orientation.VERTICAL. Determines whether the controls are arranged horizontally or vertically.
  • Method Details

    • add

      public void add(InputControl<?> ic)
      Adds the specified InputControl to the container.
      Parameters:
      ic - the InputControl instance 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

      public InputControlState<Void> state()
      Description copied from interface: InputControl
      Return the InputControlState instance for this control.
      Specified by:
      state in interface InputControl<Void>
      Returns:
      the State insstance that tracks this control's state
    • node

      public javafx.scene.Node node()
      Description copied from interface: InputControl
      Get the Node for this input element.
      Specified by:
      node in interface InputControl<Void>
      Returns:
      the node