Klasse AlertBuilder


public class AlertBuilder extends DialogBuilder<Alert,AlertBuilder,ButtonType>
Builder for Alert Dialogs. Provides a fluent interface to create Alerts.
  • Methodendetails

    • build

      public Alert build()
      Create Alert instance.
      Setzt außer Kraft:
      build in Klasse DialogBuilder<Alert,AlertBuilder,ButtonType>
      Gibt zurück:
      Alert instance
    • text

      public AlertBuilder text(String fmt, Object... args)
      Set text.
      Parameter:
      fmt - the format String as defined by Formatter
      args - the arguments passed to the formatter
      Gibt zurück:
      this
    • buttons

      public AlertBuilder buttons(ButtonType... buttons)
      Define Alert Buttons.
      Parameter:
      buttons - the buttons to show
      Gibt zurück:
      this
    • defaultButton

      public AlertBuilder defaultButton(ButtonType button)
      Define the default Buttons.
      Parameter:
      button - the button to use as default
      Gibt zurück:
      this
    • css

      public AlertBuilder css(String css)
      Set supplemental CSS.
      Parameter:
      css - the name of the CSS resource to load (URL.toExternalForm()
      Gibt zurück:
      this