Class InputDialogPane<R>

Type Parameters:
R - the type of the result produced by the input dialog pane
All Implemented Interfaces:
Supplier<R>, Styleable, EventTarget
Direct Known Subclasses:
InputPane, PromptPane

public abstract class InputDialogPane<R> extends DialogPane implements Supplier<R>
An abstract base class for dialog panes that handles input and maintains a validity state. This class also manages button actions within the dialog pane.
  • Property Details

  • Field Details

  • Constructor Details

    • InputDialogPane

      public InputDialogPane()
  • Method Details

    • init

      public abstract void init()
      Initializes the input dialog pane, setting up necessary configurations or state required before the pane is displayed. This method should be invoked prior to rendering the dialog pane to ensure all components are properly prepared.

      Concrete implementations must define the behavior for initializing input fields, validation logic, and any other setup needed for the dialog pane.

    • validProperty

      public ReadOnlyBooleanProperty validProperty()
      Get valid state property.
    • initButtons

      public void initButtons()
      Initializes the buttons for the dialog pane based on the list of button types and their corresponding actions. This method clears any existing button types, then iterates over the list of button-action pairs, adding each button type to the observable list and setting their respective actions.
    • createButton

      protected Node createButton(ButtonType buttonType)
      Overrides:
      createButton in class DialogPane