Interface TypeSpecificConfigPanel

All Known Implementing Classes:
BinaryImportQueryConfigPanel, CsvImportQueryConfigPanel, DownsampleImportQueryConfigPanel, InWorkerServiceConfigPanel, JdbcImportQueryConfigPanel, MergeImportConfigPanel, MergeQueryConfigPanel, ReplayConfigPanel, ValidateQueryConfigPanel, XmlImportQueryConfigPanel

public interface TypeSpecificConfigPanel
  • Method Details

    • getComponent

      JComponent getComponent()
    • populatePanelFromConfiguration

      void populatePanelFromConfiguration(PersistentQueryConfiguration configuration)
    • populateConfigurationFromPanel

      void populateConfigurationFromPanel(PersistentQueryConfiguration configuration)
    • setEditable

      void setEditable(boolean isEditable)
    • isChanged

      boolean isChanged(PersistentQueryConfiguration initialConfig)
    • setActivate

      void setActivate(ConfigEditorInterface configEditor, boolean active)
    • validate

      default void validate() throws PersistentQueryConfiguration.ValidationFailure
      Throws:
      PersistentQueryConfiguration.ValidationFailure
    • dispose

      void dispose()
    • hasScript

      @Nullable default Boolean hasScript()
      Determine if this type-specific panel currently requires a script. This is only applicable if a type-specific panel may or may not require a script.
      Returns:
      null if it is not applicable or not determined, true if it currently requires a script, false if it does not currently require a script
    • getNewScriptText

      default String getNewScriptText(String scriptLanguage)
      Called when a query type is selected for a script without git selected, and without any script code. If a default script is desired, this should provide it.
      Parameters:
      scriptLanguage - the language for the new script text
      Returns:
      a starting script, or null if none is needed
    • init

      default void init()
      After the type specific panel has been created, this is called off the swing thread; but before the panel's configuration is populated.