Class WaitingPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class WaitingPanel extends JPanel
This class represents a panel that is displayed while the application is waiting for a process to complete. It extends the JPanel class from the javax.swing package.
Since:
1.0
Author:
Cesar Bianchi
See Also:
  • Field Details

    • jLabel2

      public JLabel jLabel2
  • Constructor Details

    • WaitingPanel

      public WaitingPanel(String cInsURL, int nOption)
      Constructs a new WaitingPanel with the specified base URL and option. This constructor initializes the components of the panel, sets the base URL, and sets the option for downloading or uploading data.
      Parameters:
      cInsURL - The base URL to be set.
      nOption - The option to be set. It can be either DOWNLOADING_DATA or UPLOADING_DATA.
      Since:
      1.0
  • Method Details

    • setOptionDowloading

      public void setOptionDowloading()
      Sets the selected option to DOWNLOADING_DATA and updates the message and label text accordingly. This method sets the selected option to DOWNLOADING_DATA, constructs a message with the base URL, and sets this message as the text of jLabel2.
      Since:
      1.0
    • setOptionUploading

      public void setOptionUploading()
      Sets the selected option to DOWNLOADING_DATA and updates the message and label text accordingly. This method sets the selected option to DOWNLOADING_DATA, constructs a message with the base URL, and sets this message as the text of jLabel2.
      Since:
      1.0
      See Also:
    • getBaseURL

      public String getBaseURL()
      Gets the base URL.
      Returns:
      The base URL.
      Since:
      1.0
    • setBaseURL

      public void setBaseURL(String baseURL)
      Sets the base URL.
      Parameters:
      baseURL - The base URL to be set.
      Since:
      1.0
    • getcMessage

      public String getcMessage()
      Gets the message.
      Returns:
      The message.
      Since:
      1.0
    • setcMessage

      public void setcMessage(String cMessage)
      Sets the message.
      Parameters:
      cMessage - The message to be set.
      Since:
      1.0