Class BasicFileDriverPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BasicFileDriverPanel extends AbstractDriverPanel
Base for UI supporting File-based Driver.
See Also:
  • Field Details

  • Constructor Details

    • BasicFileDriverPanel

      public BasicFileDriverPanel(ErrorHandler errorHandler)
  • Method Details

    • setFileMustExist

      public void setFileMustExist(boolean fileMustExist)
    • getValidationError

      public String getValidationError()
      Overrides:
      getValidationError in class AbstractDriverPanel
      Returns:
      null if there are no validation errors; otherwise, an error message
    • getSelectedFile

      public File getSelectedFile()
    • addActionListener

      public void addActionListener(ActionListener l)
      Description copied from class: AbstractDriverPanel
      Adds an ActionListener that should be notified when the user presses this panel's OK or Cancel button.
      Specified by:
      addActionListener in class AbstractDriverPanel
      Parameters:
      l - an ActionListener
    • removeActionListener

      public void removeActionListener(ActionListener l)
      Specified by:
      removeActionListener in class AbstractDriverPanel
    • wasOKPressed

      public boolean wasOKPressed()
      Specified by:
      wasOKPressed in class AbstractDriverPanel
    • setFileDescription

      public void setFileDescription(String description)
    • setCache

      public void setCache(DriverPanelCache cache)
      Description copied from class: AbstractDriverPanel
      Attempts to restore as many panel values as possible to a previous state, to save the user some typing. Subclasses overriding this method should call the superclass method first.
      Overrides:
      setCache in class AbstractDriverPanel
      Parameters:
      cache - not null
    • getCache

      public DriverPanelCache getCache()
      Description copied from class: AbstractDriverPanel
      Returns the current panel values. Subclasses overriding this method should call the superclass method first. DriverDialog takes care of merging the returned cache with the original cache.
      Overrides:
      getCache in class AbstractDriverPanel
      Returns:
      the DriverPanelCache
    • setFileFilter

      public void setFileFilter(FileFilter filter)