Klasse ChoiceInputControl<T>

java.lang.Object
com.dua3.utility.fx.controls.ChoiceInputControl<T>
Typparameter:
T - the input result type
Alle implementierten Schnittstellen:
InputControl<T>

public class ChoiceInputControl<T> extends Object implements InputControl<T>
Interface for an input field.
  • Eigenschaftsdetails

  • Konstruktordetails

    • ChoiceInputControl

      public ChoiceInputControl(com.dua3.utility.options.ChoiceOption<T> option, Supplier<? extends @Nullable T> dfltValue)
      Constructs a ChoiceInputControl with the given options and default value supplier.
      Parameter:
      option - the ChoiceOption containing possible values for the input control
      dfltValue - a Supplier that provides the default value for the input control
  • 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
    • 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
    • reset

      public void reset()
      Beschreibung aus Schnittstelle kopiert: InputControl
      Reset value to default
      Angegeben von:
      reset in Schnittstelle InputControl<T>
    • 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
    • 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