Klasse ButtonBaseBuilder<B extends ButtonBase,BB extends ButtonBaseBuilder<B,BB>>

Bekannte direkte Unterklassen:
ButtonBuilder, CheckBoxButtonBuilder, ToggleButtonBuilder

public abstract class ButtonBaseBuilder<B extends ButtonBase,BB extends ButtonBaseBuilder<B,BB>> extends LabeledBuilder<B,BB>
  • Konstruktordetails

    • ButtonBaseBuilder

      protected ButtonBaseBuilder(Supplier<? extends B> factory)
      Constructor.
      Parameter:
      factory - the factory method for Button instances
  • Methodendetails

    • build

      public B build()
      Build the button.
      Setzt außer Kraft:
      build in Klasse LabeledBuilder<B extends ButtonBase,BB extends ButtonBaseBuilder<B,BB>>
      Gibt zurück:
      new button instance
    • action

      public BB action(EventHandler<ActionEvent> action)
      Set event handler for the button.
      Parameter:
      action - the EventHandler
      Gibt zurück:
      this ButtonBaseBuilder instance
    • action

      public BB action(Runnable action)
      Set action for the button.
      Parameter:
      action - the action to perform when pressed
      Gibt zurück:
      this ButtonBaseBuilder instance
    • bindAction

      public BB bindAction(EventHandler<ActionEvent> action)
      Set action for the button.
      Parameter:
      action - the action to perform when pressed
      Gibt zurück:
      this ButtonBaseBuilder instance
    • bindAction

      public BB bindAction(ObservableValue<Runnable> action)
      Set action for the button.
      Parameter:
      action - the action to perform when pressed
      Gibt zurück:
      this ButtonBaseBuilder instance