Interface ActionButton.Builder

Enclosing interface:
ActionButton

@NonExtendable public static interface ActionButton.Builder
A builder for creating ActionButton instances.
  • Method Details

    • tooltip

      @Contract(value="_ -> this", mutates="this") ActionButton.Builder tooltip(@Nullable Component tooltip)
      Sets the tooltip of the action button, or null if no tooltip is desired.
      Parameters:
      tooltip - the tooltip of the button, or null
      Returns:
      this builder
    • width

      @Contract(value="_ -> this", mutates="this") ActionButton.Builder width(@org.jetbrains.annotations.Range(from=1L, to=1024L) int width)
      Sets the width of the action button.
      Parameters:
      width - the width of the button
      Returns:
      this builder
    • action

      @Contract(value="_ -> this", mutates="this") ActionButton.Builder action(@Nullable DialogAction action)
      Sets the action associated with this button, or null if no action is desired.
      Parameters:
      action - the action to perform when the button is clicked, or null
      Returns:
      this builder
    • build

      @Contract(value="-> new", pure=true) ActionButton build()
      Builds the ActionButton instance with the configured values.
      Returns:
      a new ActionButton instance