Class BatchPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BatchPanel extends JPanel
BatchPanel provides a tree table interface for managing batch files in a folder. The tree table displays files with columns: FileName, Edit, Run, Result. Edit and Run columns are rendered as buttons for user interaction.
See Also:
  • Constructor Details

    • BatchPanel

      public BatchPanel()
  • Method Details

    • resetResults

      public void resetResults()
      Reset the result for loaded files in this batch
    • clear

      public void clear()
      Removes all the files from this batch
    • loadDirectory

      public void loadDirectory(File folder)
      Load files from the specified folder into the tree table.
      Parameters:
      folder - The folder to load files from
    • loadFiles

      public void loadFiles(File[] files)
      Load the given files into the tree table
      Parameters:
      files - the array of files to add in the batch execution panel
    • getLastUsedFolder

      public File getLastUsedFolder()
      Gets the last used folder when loading a folder's contents or choosing an individual file
      Returns:
      File représentation of the last used folder to load files into this batch panel
    • getSelectedDbConfig

      public DbConfig getSelectedDbConfig()
      Return the selected database config object if there is one selected in the combo box of this panel,
      Returns:
      DbConfig currently selected or null of none available.
    • runAll

      public void runAll()
    • updateRibbon

      public void updateRibbon()