Class AbstractDriverPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.vividsolutions.jump.workbench.ui.AbstractDriverPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
BasicFileDriverPanel, DataStoreSaveDriverPanel, FMEFileDriverPanel, GMLFileDriverPanel, JMLFileDriverPanel, PostGISSaveDriverPanel

public abstract class AbstractDriverPanel extends JPanel
UI for AbstractDrivers. Must supply OK and Cancel buttons (for example, using OKCancelPanel).
See Also:
  • Constructor Details

    • AbstractDriverPanel

      public AbstractDriverPanel()
  • Method Details

    • addActionListener

      public abstract void addActionListener(ActionListener l)
      Adds an ActionListener that should be notified when the user presses this panel's OK or Cancel button.
      Parameters:
      l - an ActionListener
    • removeActionListener

      public abstract void removeActionListener(ActionListener l)
    • wasOKPressed

      public abstract boolean wasOKPressed()
    • isInputValid

      public boolean isInputValid()
    • setCache

      public void setCache(DriverPanelCache cache)
      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.
      Parameters:
      cache - not null
    • getCache

      public DriverPanelCache getCache()
      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.
      Returns:
      the DriverPanelCache
    • getValidationError

      public String getValidationError()
      Returns:
      null if there are no validation errors; otherwise, an error message