Class QueryPanel

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.splitlayout.SplitLayout
org.jumpmind.vaadin.ui.common.CustomSplitLayout
org.jumpmind.vaadin.ui.sqlexplorer.QueryPanel
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.splitlayout.SplitLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.splitlayout.SplitLayoutVariant>, Serializable, IContentTab

public class QueryPanel extends CustomSplitLayout implements IContentTab
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.splitlayout.SplitLayout

    com.vaadin.flow.component.splitlayout.SplitLayout.Orientation, com.vaadin.flow.component.splitlayout.SplitLayout.SplitterDragendEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueryPanel(IDb db, ISettingsProvider settingsProvider, IButtonBar buttonBar, String user)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addResultsTab(com.vaadin.flow.component.Component resultComponent, String title, com.vaadin.flow.component.icon.Icon icon)
     
    void
    addResultsTab(com.vaadin.flow.component.Component resultComponent, String title, com.vaadin.flow.component.icon.Icon icon, int position)
     
    protected void
    addToSqlHistory(String sqlStatement, Date executeTime, long executeDuration, String userId)
     
    void
     
    protected de.f0rce.ace.AceEditor
     
    void
     
    protected com.vaadin.flow.component.ShortcutRegistration
     
    protected com.vaadin.flow.component.ShortcutRegistration
     
    void
     
    boolean
    execute(boolean runAsScript)
     
    protected boolean
    execute(boolean runAsScript, String sqlText, int tabPosition)
     
    protected boolean
    execute(boolean runAsScript, String sqlText, int tabPosition, boolean forceNewTab)
     
    protected void
    executeSql(String sql, boolean writeToQueryWindow)
     
     
     
     
     
    de.f0rce.ace.AceEditor
     
    boolean
     
    void
     
    void
    replaceGeneralResultsWith(com.vaadin.flow.component.Component newComponent, com.vaadin.flow.component.icon.VaadinIcon icon)
     
    void
     
    void
     
    void
     
    void
     
    void
     
    protected String
     
    void
    setAutoCompleteEnabled(boolean enabled)
     
    protected void
     
    protected void
     
    void
     
    void
     
    void
     

    Methods inherited from class com.vaadin.flow.component.splitlayout.SplitLayout

    addSplitterDragendListener, addToPrimary, addToSecondary, getOrientation, getPrimaryComponent, getSecondaryComponent, remove, removeAll, setPrimaryStyle, setSecondaryStyle

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants
  • Constructor Details

  • Method Details

    • getDb

      public IDb getDb()
    • buildSqlEditor

      protected de.f0rce.ace.AceEditor buildSqlEditor()
    • getSqlEditor

      public de.f0rce.ace.AceEditor getSqlEditor()
    • syncSqlEditor

      public void syncSqlEditor()
    • getButtonBar

      public IButtonBar getButtonBar()
    • setSelectedTabChangeListener

      protected void setSelectedTabChangeListener()
    • getGeneralResultsTab

      public TabSheet.EnhancedTab getGeneralResultsTab()
    • createGeneralResultsTab

      public void createGeneralResultsTab()
    • removeGeneralResultsTab

      public void removeGeneralResultsTab()
    • resetGeneralResultsTab

      public void resetGeneralResultsTab()
    • replaceGeneralResultsWith

      public void replaceGeneralResultsWith(com.vaadin.flow.component.Component newComponent, com.vaadin.flow.component.icon.VaadinIcon icon)
    • selected

      public void selected()
      Specified by:
      selected in interface IContentTab
    • unselected

      public void unselected()
      Specified by:
      unselected in interface IContentTab
    • setButtonsEnabled

      protected void setButtonsEnabled()
    • createExecuteSqlShortcutListener

      protected com.vaadin.flow.component.ShortcutRegistration createExecuteSqlShortcutListener()
    • createExecuteSqlScriptShortcutListener

      protected com.vaadin.flow.component.ShortcutRegistration createExecuteSqlScriptShortcutListener()
    • requestExecutionAtCursor

      public void requestExecutionAtCursor()
    • requestScriptExecution

      public void requestScriptExecution()
    • addToSqlHistory

      protected void addToSqlHistory(String sqlStatement, Date executeTime, long executeDuration, String userId)
    • reExecute

      public boolean reExecute(String sql)
    • execute

      public boolean execute(boolean runAsScript)
    • appendSql

      public void appendSql(String sql)
    • getSql

      public String getSql()
    • executeSql

      protected void executeSql(String sql, boolean writeToQueryWindow)
    • execute

      protected boolean execute(boolean runAsScript, String sqlText, int tabPosition)
    • execute

      protected boolean execute(boolean runAsScript, String sqlText, int tabPosition, boolean forceNewTab)
    • addResultsTab

      public void addResultsTab(com.vaadin.flow.component.Component resultComponent, String title, com.vaadin.flow.component.icon.Icon icon)
    • addResultsTab

      public void addResultsTab(com.vaadin.flow.component.Component resultComponent, String title, com.vaadin.flow.component.icon.Icon icon, int position)
    • commit

      public void commit()
    • transactionEnded

      public void transactionEnded()
    • rollback

      public void rollback()
    • selectSqlToRun

      protected String selectSqlToRun()
    • setAutoCompleteEnabled

      public void setAutoCompleteEnabled(boolean enabled)