Klasse RadioPane<T>

Typparameter:
T - The type of items that will be represented as radio buttons.
Alle implementierten Schnittstellen:
InputControl<T>, Styleable, EventTarget

public class RadioPane<T> extends VBox implements InputControl<T>
A custom control pane that arranges radio buttons vertically. This class extends VBox and implements InputControl to provide selection and validation capabilities.
  • Eigenschaftsdetails

  • Felddetails

    • LOG

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

    • RadioPane

      public RadioPane(Collection<T> items, @Nullable T currentValue, Function<T,Optional<String>> validate)
      Constructs a RadioPane with a given set of items, current value, and validation function.
      Parameter:
      items - the collection of items to be represented as radio buttons
      currentValue - the item to be selected initially, nullable
      validate - the validation function to validate the selected item, returning an optional error message
  • Methodendetails

    • node

      public Node node()
      Beschreibung aus Schnittstelle kopiert: InputControl
      Get the Node for this input element.
      Angegeben von:
      node in Schnittstelle InputControl<T>
      Gibt zurück:
      the node
    • reset

      public void reset()
      Beschreibung aus Schnittstelle kopiert: InputControl
      Reset value to default
      Angegeben von:
      reset in Schnittstelle InputControl<T>
    • valueProperty

      public Property<@Nullable T> valueProperty()
      Beschreibung aus Schnittstelle kopiert: InputControl
      Provides the property representing the value of this input control.
      Angegeben von:
      valueProperty in Schnittstelle InputControl<T>
      Gibt zurück:
      die Eigenschaft value
    • validProperty

      public ReadOnlyBooleanProperty validProperty()
      Beschreibung aus Schnittstelle kopiert: InputControl
      Provides a read-only property representing the validity of the input.
      Angegeben von:
      validProperty in Schnittstelle InputControl<T>
      Gibt zurück:
      die Eigenschaft valid
      Siehe auch:
    • errorProperty

      public ReadOnlyStringProperty errorProperty()
      Beschreibung aus Schnittstelle kopiert: InputControl
      Provides 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:
      errorProperty in Schnittstelle InputControl<T>
      Gibt zurück:
      die Eigenschaft error
    • requestFocus

      public void requestFocus()
      Setzt außer Kraft:
      requestFocus in Klasse Node