Class GProgressBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GProgressBar extends JPanel
See Also:
  • Constructor Details

    • GProgressBar

      public GProgressBar(CancelledListener cancelledListener, boolean includeTextField, boolean includeCancelButton, boolean includeAnimatedIcon)
  • Method Details

    • setBackgroundColor

      public void setBackgroundColor(Color bg)
    • initialize

      public void initialize(long maximum)
    • setProgress

      public void setProgress(long progress)
    • setMaximum

      public void setMaximum(long max)
    • incrementProgress

      public void incrementProgress(long incrementAmount)
    • getProgress

      public long getProgress()
    • getMax

      public long getMax()
    • setMessage

      public void setMessage(String message)
    • getMessage

      public String getMessage()
    • setIndeterminate

      public void setIndeterminate(boolean indeterminate)
      Sets the indeterminate property of the progress bar, which determines whether the progress bar is in determinate or indeterminate mode. An indeterminate progress bar continuously displays animation indicating that an operation of unknown length is occurring. By default, this property is false. Some look and feels might not support indeterminate progress bars; they will ignore this property.
      Parameters:
      indeterminate - true if indeterminate
      See Also:
    • showProgressIcon

      public void showProgressIcon(boolean showIcon)
      Show or not show the progress icon (spinning globe) according to the showIcon param.
      Parameters:
      showIcon - true to show the icon
    • setShowProgressValue

      public void setShowProgressValue(boolean showProgressValue)
      True (the default) signals to paint the progress information inside of the progress bar.
      Parameters:
      showProgressValue - true to paint the progress value; false to not
    • cancel

      public void cancel()
    • setCancelledListener

      public void setCancelledListener(CancelledListener listener)