Class FileArrayEditor

java.lang.Object
org.esa.snap.ui.io.FileArrayEditor

public class FileArrayEditor extends Object
An UI-Component which represents a product file list with the ability to add and remove files.
  • Constructor Details

    • FileArrayEditor

      public FileArrayEditor(FileArrayEditor.EditorParent parent, String label)
      Constructs the object with default values
      Parameters:
      parent - the parent editor
      label - the label for this editor
  • Method Details

    • getParent

      protected final FileArrayEditor.EditorParent getParent()
    • getUI

      public JComponent getUI()
      Retrieves the editor UI.
      Returns:
      the editor UI
    • setFiles

      public void setFiles(List<File> files)
      Sets the list of files to be edited. The list currently held is overwritten.
      Parameters:
      files - List of Files to be set
    • getFiles

      public List<File> getFiles()
      Retrieves the list of files currently edited
      Returns:
      a List of currently edited Files
    • setListener

      public void setListener(FileArrayEditor.FileArrayEditorListener listener)
      Sets the listener for this class
      Parameters:
      listener - the listener to associate with this editor
    • createRemoveFileButton

      public JButton createRemoveFileButton()
    • createAddFileButton

      public JButton createAddFileButton()
    • createFileArrayComponent

      public JComponent createFileArrayComponent()
    • createFileChooserDialog

      protected JFileChooser createFileChooserDialog()