Interface ProgressDialog.Builder

All Superinterfaces:
DialogBuilder<ProgressDialog.Builder>
Enclosing class:
ProgressDialog

public static interface ProgressDialog.Builder extends DialogBuilder<ProgressDialog.Builder>
A builder for ProgressDialog.
  • Method Details

    • indeterminate

      ProgressDialog.Builder indeterminate(boolean indeterminate)
      Parameters:
      indeterminate - the indeterminate status of the progress bar
      Returns:
      this ProgressDialogBuilder instance
    • maximumProgress

      ProgressDialog.Builder maximumProgress(int maximumProgress)
      Note that calling this method renders the progress bar determinate
      Parameters:
      maximumProgress - the maximum progress, 100 by default
      Returns:
      this ProgressDialogBuilder instance
      See Also:
    • stringPainted

      ProgressDialog.Builder stringPainted(boolean stringPainted)
      Parameters:
      stringPainted - the string painted status of the progress bar
      Returns:
      this ProgressDialogBuilder instance
    • northPanel

      ProgressDialog.Builder northPanel(JPanel northPanel)
      Parameters:
      northPanel - if specified this panel is added to the BorderLayout.NORTH position
      Returns:
      this ProgressDialogBuilder instance
    • westPanel

      ProgressDialog.Builder westPanel(JPanel westPanel)
      Parameters:
      westPanel - if specified this panel is added to the BorderLayout.WEST position
      Returns:
      this ProgressDialogBuilder instance
    • eastPanel

      ProgressDialog.Builder eastPanel(JPanel eastPanel)
      Parameters:
      eastPanel - if specified this panel is added to the BorderLayout.EAST position
      Returns:
      this ProgressDialogBuilder instance
    • control

      ProgressDialog.Builder control(Control.Builder<?,?> controlBuilder)
      Adds a button based on the given control to the BorderLayout.SOUTH position
      Parameters:
      controlBuilder - the builder for the control to add
      Returns:
      this ProgressDialogBuilder instance
    • control

      ProgressDialog.Builder control(Control control)
      Adds a button based on the given control to the BorderLayout.SOUTH position
      Parameters:
      control - the control to add
      Returns:
      this ProgressDialogBuilder instance
    • progressBarSize

      ProgressDialog.Builder progressBarSize(Dimension progressBarSize)
      Parameters:
      progressBarSize - the progress bar size
      Returns:
      this ProgressDialogBuilder instance
    • border

      Parameters:
      border - the border to add around the progress bar
      Returns:
      this ProgressDialogBuilder instance
    • build

      Returns:
      a new ProgressDialog