Class OptionsPane

All Implemented Interfaces:
InputControl<com.dua3.utility.options.Arguments>, Styleable, EventTarget

public class OptionsPane extends GridPane implements InputControl<com.dua3.utility.options.Arguments>
OptionsPane is a custom JavaFX GridPane used as a control element for managing a collection of options represented by instances of the Option class. It implements the InputControl interface which allows it to handle input and provide output in the form of Arguments.
  • Property Details

  • Field Details

    • LOG

      protected static final org.apache.logging.log4j.Logger LOG
      Logger
  • Constructor Details

    • OptionsPane

      public OptionsPane(Collection<com.dua3.utility.options.Option<?>> optionSet, com.dua3.utility.options.Arguments currentValues)
      Create new OptionsPane.
      Parameters:
      optionSet - the available options
      currentValues - the current values
      See Also:
      • Option
      • Arguments
    • OptionsPane

      public OptionsPane(Supplier<? extends Collection<com.dua3.utility.options.Option<?>>> options, Supplier<com.dua3.utility.options.Arguments> dflt)
      Constructs a new OptionsPane with the given suppliers for options and default arguments.
      Parameters:
      options - A supplier providing a collection of options.
      dflt - A supplier providing the default arguments.
      See Also:
      • Option
      • Arguments
  • Method Details

    • node

      public Node node()
      Description copied from interface: InputControl
      Get the Node for this input element.
      Specified by:
      node in interface InputControl<com.dua3.utility.options.Arguments>
      Returns:
      the node
    • get

      public com.dua3.utility.options.Arguments get()
      Description copied from interface: InputControl
      Get value.
      Specified by:
      get in interface InputControl<com.dua3.utility.options.Arguments>
      Returns:
      the current value
    • set

      public void set(com.dua3.utility.options.Arguments arg)
      Description copied from interface: InputControl
      Set value.
      Specified by:
      set in interface InputControl<com.dua3.utility.options.Arguments>
      Parameters:
      arg - the value to set
    • init

      public void init()
      Description copied from interface: InputControl
      Set/update control state.
      Specified by:
      init in interface InputControl<com.dua3.utility.options.Arguments>
    • reset

      public void reset()
      Description copied from interface: InputControl
      Reset value to default
      Specified by:
      reset in interface InputControl<com.dua3.utility.options.Arguments>
    • valueProperty

      public Property<com.dua3.utility.options.Arguments> valueProperty()
      Description copied from interface: InputControl
      Provides the property representing the value of this input control.
      Specified by:
      valueProperty in interface InputControl<com.dua3.utility.options.Arguments>
    • validProperty

      public ReadOnlyBooleanProperty validProperty()
      Description copied from interface: InputControl
      Provides a read-only property representing the validity of the input.
      Specified by:
      validProperty in interface InputControl<com.dua3.utility.options.Arguments>
      See Also:
    • errorProperty

      public ReadOnlyStringProperty errorProperty()
      Description copied from interface: 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.

      Specified by:
      errorProperty in interface InputControl<com.dua3.utility.options.Arguments>