Class AbstractDriverPanel

    • Constructor Detail

      • AbstractDriverPanel

        public AbstractDriverPanel()
    • Method Detail

      • 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.
      • 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.
      • getValidationError

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