Class FtpConfigGUI

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class FtpConfigGUI extends JPanel implements ActionListener
Builds the GUI panel for entering and displaying configuration parameters for the FtpFileEINode.
See Also:
  • Field Details

    • MIN

      public static final String MIN
    • HR

      public static final String HR
    • CONFIG_STRING_SIZE

      public static final int CONFIG_STRING_SIZE
      See Also:
  • Constructor Details

    • FtpConfigGUI

      public FtpConfigGUI()
      Instantiate the appropriate GUI panel with default configuration settings.
    • FtpConfigGUI

      public FtpConfigGUI(String ftpSetting)
      Instantiate the appropriate GUI panel with specified configuration settings.
      Parameters:
      ftpSetting - Specifies ftp-specific parameters
  • Method Details

    • addGUIComponents

      protected void addGUIComponents()
      Creates and adds the necessary GUI widgets to the panel.
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Defines what actions are performed when the various GUI buttons are pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      event - Describes the action that triggered the call to this method
    • isFtpInfoEmpty

      public boolean isFtpInfoEmpty()
      Used to determine if user has entered any ftp info yet.
      Returns:
      boolean indicating whether user has entered any ftp info.
    • getFtpInfoFromGUI

      public String getFtpInfoFromGUI()
      Returns the ftp configuration parameters as a String.
    • delayTimeIsGood

      public boolean delayTimeIsGood()
      Used to warn the user if the ftp delay time is not appropriate. Basically, if the user is trying to retrieve files faster than every ten minutes (600 seconds), that's probably too fast. The ideal interval is anywhere from 5400 seconds to 7200 seconds.
      Returns:
      boolean flag indicating whether delay time is appropriate
    • applyListener

      public void applyListener(ActionListener listener)
    • deselectDeleteBox

      public void deselectDeleteBox()
    • getDeleteBoxRef

      public JCheckBox getDeleteBoxRef()