Class ProgressBarUI

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, UserInterface

    public class ProgressBarUI
    extends java.lang.Object
    implements UserInterface, java.awt.event.ActionListener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected magellan.client.swing.ProgressBarUI.ProgressDlg dlg  
      protected boolean ready  
      protected boolean showing  
    • Constructor Summary

      Constructors 
      Constructor Description
      ProgressBarUI​(javax.swing.JDialog parent)
      Creates a modal progressbar with standard closing listener.
      ProgressBarUI​(javax.swing.JDialog parent, boolean modal, int delay, UserInterface.ClosingListener listener)
      Creates a ProgressBar Dialog which can be modal or non-modal. listener.proceed() is called if the dialog receives a WINDOW_CLOSING event(e.g., if the user clicks the dialog's close button.
      ProgressBarUI​(javax.swing.JFrame parent)
      Creates a modal progressbar with standard closing listener.
      ProgressBarUI​(javax.swing.JFrame parent, boolean modal, int delay, UserInterface.ClosingListener listener)
      Creates a ProgressBar Dialog which can be modal or non-modal. listener.proceed() is called if the dialog receives a WINDOW_CLOSING event(e.g., if the user clicks the dialog's close button.
    • Field Detail

      • dlg

        protected magellan.client.swing.ProgressBarUI.ProgressDlg dlg
      • showing

        protected boolean showing
      • ready

        protected boolean ready
    • Constructor Detail

      • ProgressBarUI

        public ProgressBarUI​(javax.swing.JFrame parent)
        Creates a modal progressbar with standard closing listener.
        Parameters:
        parent -
      • ProgressBarUI

        public ProgressBarUI​(javax.swing.JDialog parent)
        Creates a modal progressbar with standard closing listener.
        Parameters:
        parent -
      • ProgressBarUI

        public ProgressBarUI​(javax.swing.JFrame parent,
                             boolean modal,
                             int delay,
                             UserInterface.ClosingListener listener)
        Creates a ProgressBar Dialog which can be modal or non-modal. listener.proceed() is called if the dialog receives a WINDOW_CLOSING event(e.g., if the user clicks the dialog's close button. If listener is null, a standard listener shall be used which asks the user for confirmation. If listener.proceed() returns true, the ProgressBarUI is closed.
        Parameters:
        parent - The JFrame acting as the parent frame of the dialog.
        modal - Whether the dialog should be modal or not
        delay - The time after which the dialog shall be shown after show() has been called.
        listener - The listener reacting to WINDOW_CLOSING events. If null, a standard listener shall be used.
      • ProgressBarUI

        public ProgressBarUI​(javax.swing.JDialog parent,
                             boolean modal,
                             int delay,
                             UserInterface.ClosingListener listener)
        Creates a ProgressBar Dialog which can be modal or non-modal. listener.proceed() is called if the dialog receives a WINDOW_CLOSING event(e.g., if the user clicks the dialog's close button. If listener is null, a standard listener shall be used which asks the user for confirmation. If listener.proceed() returns true, the ProgressBarUI is closed.
        Parameters:
        parent - The JD acting as the parent frame of the dialog.
        modal - Whether the dialog should be modal or not
        delay - The time after which the dialog shall be shown after show() has been called.
        listener - The listener reacting to WINDOW_CLOSING events.