Class JMLFileDriverPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JMLFileDriverPanel extends AbstractDriverPanel
See Also:
  • Constructor Details

    • JMLFileDriverPanel

      public JMLFileDriverPanel(ErrorHandler errorHandler)
  • Method Details

    • setGMLFileMustExist

      public void setGMLFileMustExist(boolean gmlFileMustExist)
    • 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
    • getValidationError

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

      public File getJMLFile()
    • getTemplateFile

      public File getTemplateFile()
    • 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
    • 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