Alle implementierten Schnittstellen:
Styleable, EventTarget

public class InputGrid extends GridPane
The InputGrid class is an extension of GridPane that manages input controls and ensures their validation state. It organizes input controls in a grid layout and provides methods for initialization, resetting, and retrieving input values.
  • Eigenschaftsdetails

  • Felddetails

    • LOG

      protected static final org.apache.logging.log4j.Logger LOG
      Logger
    • valid

      protected final BooleanProperty valid
  • Konstruktordetails

    • InputGrid

      public InputGrid()
      Constructs a new instance of the InputGrid class.
  • Methodendetails

    • validProperty

      public ReadOnlyBooleanProperty validProperty()
      Get valid state property.
      Gibt zurück:
      the valid state property of the input
    • get

      public Map<String,Object> get()
      Retrieves a map of IDs and their corresponding values from the input controls.
      Gibt zurück:
      A map containing IDs as keys and their input values as values. The result might contain keys that map to null values.
    • init

      public void init()
      Initializes the InputGrid by clearing previous input controls, creating a new grid layout, and setting up input controls with labels and markers.

      This method performs the following steps: - Clears all existing child nodes from the grid. - Iterates through the data entries to add their corresponding input controls, labels, and markers to the grid with proper layout settings. - Binds the overall validity state to the validity states of individual input controls. - Sets the initial focus to the first input control in the grid.

    • reset

      public void reset()
      Resets all input controls in the grid to their default values.

      This method iterates through each data entry in the grid and invokes the reset method on its associated control, thereby setting each input control back to its default state as defined by the corresponding Meta object's default value supplier.