Class FileListPanel

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

public class FileListPanel extends JPanel implements ActionListener
See Also:
  • Constructor Details

    • FileListPanel

      public FileListPanel()
      Constructor for the FilePanel object.
    • FileListPanel

      public FileListPanel(String title)
    • FileListPanel

      public FileListPanel(String title, String filetype)
    • FileListPanel

      public FileListPanel(ChangeListener l, String title)
      Constructor for the FilePanel object.
      Parameters:
      l - The changelistener for this panel
      title - The title of this panel
  • Method Details

    • addChangeListener

      public void addChangeListener(ChangeListener l)
    • enableFile

      public void enableFile(boolean enable)
      If the gui needs to enable/disable the FilePanel, call the method.
      Parameters:
      enable - Flag whether FilePanel should be enabled
    • addFilename

      public void addFilename(String f)
      Add a single file to the table
      Parameters:
      f - The name of the file to be added
    • clearFiles

      public void clearFiles()
      clear the files from the table
    • setFiles

      public void setFiles(String[] files)
    • getFiles

      public String[] getFiles()
    • deleteFile

      protected void deleteFile()
    • initializeTableModel

      protected void initializeTableModel()
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener