Class PersistentQueryConfigEditor

All Implemented Interfaces:
ConfigEditorInterface, ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class PersistentQueryConfigEditor extends JDialog implements ConfigEditorInterface
See Also:
  • Method Details

    • $$$getRootComponent$$$

      public JComponent $$$getRootComponent$$$()
      Noinspection:
      ALL
    • updateDbServerList

      public void updateDbServerList(@Nullable List<String> serverClasses, @Nullable String currentValue)
      Description copied from interface: ConfigEditorInterface
      Update the list of allowed DB servers based on the provided list of server classes. If serverClasses is null, then all available servers allowed for the user will be added. If currentValue is not null and that server is in the server list, it will be selected in the combo box, otherwise an indeterminate object will be selected.
      Specified by:
      updateDbServerList in interface ConfigEditorInterface
      Parameters:
      serverClasses - the server classes to be allowed
      currentValue - the value to which to set the combo box
    • updateScriptCodeTab

      public void updateScriptCodeTab(boolean makeVisible, boolean makeEditable, boolean showLanguage)
      Description copied from interface: ConfigEditorInterface
      Update the script tab based on whether it should be visible and/or editable.
      Specified by:
      updateScriptCodeTab in interface ConfigEditorInterface
      Parameters:
      makeVisible - if true, make the script editor tab visible; if false, don't
      makeEditable - if true, the tab should be editable if it is visible
    • editConfig

      public static PersistentQueryConfigEditor.EditResult editConfig(com.fishlib.io.logger.Logger log, PersistentQueryConfiguration initialConfig, Supplier<PersistentQueryInfo> querySupplier, IrisWidgetSupport widgetSupport, boolean showRevertPanel, boolean showScriptTab, Component parent, boolean forceModified)
      Create a dialog to display a script/strategy for editing.
      Parameters:
      initialConfig - configuration that we are editing (or creating)
      showScriptTab - show the script tab as soon as the dialog is opened
      Returns:
      true if the initial config was changed and should be added/updated
    • editConfig

      public static PersistentQueryConfigEditor.EditResult editConfig(com.fishlib.io.logger.Logger log, PersistentQueryConfiguration initialConfig, Supplier<PersistentQueryInfo> querySupplier, IrisWidgetSupport widgetSupport, boolean showRevertPanel, boolean showScriptTab, Component parent)
    • setScriptPathRequired

      public void setScriptPathRequired(boolean scriptPathRequired)
      Specified by:
      setScriptPathRequired in interface ConfigEditorInterface