Class FtpConfigPanel

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

public class FtpConfigPanel extends JPanel implements ActionListener
This class is based on the FtpConfiGUI class. The FtpConfigPanel class is responsible for displaying a table containing all of the configured FTP servers. It will allow the user to add, delete, or modify entries in the table via the FtpInfoDialog class. It will also allow the user to configure whether to rename, delete, or leave files unchanged on the remote server after they have been retrieved.
See Also:
  • Field Details

    • MIN

      public final String MIN
    • HR

      public final String HR
    • mainPanel

      protected JPanel mainPanel
    • outputScrollpane

      protected JScrollPane outputScrollpane
    • outputTable

      protected com.nt.udc.gui.SortedJTable outputTable
    • panel23

      protected JPanel panel23
    • addButton

      protected JButton addButton
    • deleteButton

      protected JButton deleteButton
    • editButton

      protected JButton editButton
    • w

      protected Window w
    • intervalLabel

      protected JLabel intervalLabel
    • interruptLabel

      protected JLabel interruptLabel
    • intervalField

      protected com.nt.common.gui.SMGIntField intervalField
    • unitsBox

      protected JComboBox unitsBox
    • interruptUnitsBox

      protected JComboBox interruptUnitsBox
    • deleteBox

      protected JCheckBox deleteBox
    • renameBox

      protected JCheckBox renameBox
    • gbl

      protected GridBagLayout gbl
    • gbc

      protected GridBagConstraints gbc
    • ftpInfo

      protected Object[][] ftpInfo
    • CONFIG_STRING_SIZE

      public static final int CONFIG_STRING_SIZE
      See Also:
    • TYPE_COLUMN

      protected static final int TYPE_COLUMN
      See Also:
    • IP_COLUMN

      protected static final int IP_COLUMN
      See Also:
    • FILEDIR_COLUMN

      protected static final int FILEDIR_COLUMN
      See Also:
    • PATTERN_COLUMN

      protected static final int PATTERN_COLUMN
      See Also:
    • USERNAME_COLUMN

      protected static final int USERNAME_COLUMN
      See Also:
    • PASSWORD_COLUMN

      protected static final int PASSWORD_COLUMN
      See Also:
    • DEFAULTDELAY

      protected final int DEFAULTDELAY
      See Also:
    • DEFAULTINTERRUPTTIMERDELAY

      protected final int DEFAULTINTERRUPTTIMERDELAY
      See Also:
    • DEFAULTUNITS

      protected final String DEFAULTUNITS
    • ftpDelay

      protected int ftpDelay
    • interruptDelay

      protected int interruptDelay
    • ftpDelayUnits

      protected String ftpDelayUnits
    • deleteFilesFlag

      protected boolean deleteFilesFlag
    • renameFilesFlag

      protected boolean renameFilesFlag
    • SIMPLE_MODE

      public static final String SIMPLE_MODE
      See Also:
    • REGEXP_MODE

      public static final String REGEXP_MODE
      See Also:
  • Constructor Details

    • FtpConfigPanel

      public FtpConfigPanel()
    • FtpConfigPanel

      public FtpConfigPanel(String ftpSetting)
  • Method Details

    • validateDelay

      protected int validateDelay(String s, int i)
    • getArrayString

      protected Object[][] getArrayString(String ftpSetting)
    • addGUIComponents

      protected void addGUIComponents()
    • isADuplicate

      protected boolean isADuplicate(String address, String dir, FileFilterPattern pattern)
    • enableAppropriateButtons

      protected void enableAppropriateButtons()
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • isFtpInfoEmpty

      public boolean isFtpInfoEmpty()
    • appendProperty

      protected void appendProperty(StringBuffer sb, String key, int value)
    • appendProperty

      protected void appendProperty(StringBuffer sb, String key, boolean value)
    • appendProperty

      protected void appendProperty(StringBuffer sb, String key, String value)
    • getFtpInfoFromGUI

      public String getFtpInfoFromGUI()