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
- 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
ConstructorsConstructorDescriptionQueryPanel
(IDb db, ISettingsProvider settingsProvider, IButtonBar buttonBar, String user) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
commit()
protected com.vaadin.flow.component.ShortcutRegistration
protected com.vaadin.flow.component.ShortcutRegistration
void
boolean
execute
(boolean runAsScript) protected boolean
protected boolean
protected void
executeSql
(String sql, boolean writeToQueryWindow) getDb()
getSql()
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
rollback()
void
selected()
protected String
void
setAutoCompleteEnabled
(boolean enabled) protected void
protected void
void
void
void
Methods inherited from class org.jumpmind.vaadin.ui.common.CustomSplitLayout
getPrimarySizePixel, getSecondarySizePixel, getSplitterPosition, setOrientation, setSplitterPosition
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
-
QueryPanel
-
-
Method Details
-
getDb
-
buildSqlEditor
protected de.f0rce.ace.AceEditor buildSqlEditor() -
getSqlEditor
public de.f0rce.ace.AceEditor getSqlEditor() -
syncSqlEditor
public void syncSqlEditor() -
getButtonBar
-
setSelectedTabChangeListener
protected void setSelectedTabChangeListener() -
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 interfaceIContentTab
-
unselected
public void unselected()- Specified by:
unselected
in interfaceIContentTab
-
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
-
reExecute
-
execute
public boolean execute(boolean runAsScript) -
appendSql
-
getSql
-
executeSql
-
execute
-
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
-
setAutoCompleteEnabled
public void setAutoCompleteEnabled(boolean enabled)
-