Class SQLStatementPanel

    • Field Detail

      • m_ButtonHistory

        protected BaseButton m_ButtonHistory
        the button for the history.
      • m_ButtonHelp

        protected BaseButton m_ButtonHelp
        the button for displaying the help.
      • m_PanelBottom

        protected JPanel m_PanelBottom
        the panel for the buttons at the bottom.
      • m_PanelButtonsRight

        protected JPanel m_PanelButtonsRight
        the panel for the buttons on the right.
      • m_PanelButtonsLeft

        protected JPanel m_PanelButtonsLeft
        the panel for the buttons on the left.
      • m_PopupMenu

        protected JPopupMenu m_PopupMenu
        the popup menu for the recent items.
      • m_QueryChangeListeners

        protected Set<ChangeListener> m_QueryChangeListeners
        the list of query change listeners.
    • Constructor Detail

      • SQLStatementPanel

        public SQLStatementPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • setStatement

        public void setStatement​(SQLStatement value)
        Sets the SQL statement.
        Parameters:
        value - the statement to use
      • getStatement

        public SQLStatement getStatement()
        Returns the current SQL statement.
        Returns:
        the current statement
      • addStatementToHistory

        public void addStatementToHistory()
        Adds the current statement to the list of recent statements.
      • getButtonsLeft

        public JPanel getButtonsLeft()
        Returns the panel for the buttons on the left.
        Returns:
        the panel
      • getButtonsRight

        public JPanel getButtonsRight()
        Returns the panel for the buttons on the right.
        Returns:
        the panel
      • getQueryPanel

        public SQLSyntaxEditorPanel getQueryPanel()
        Returns the query panel.
        Returns:
        the panel
      • setEnabled

        public void setEnabled​(boolean value)
        Sets the enabled state.
        Overrides:
        setEnabled in class JComponent
        Parameters:
        value - true if to be enabled
      • addQueryChangeListener

        public void addQueryChangeListener​(ChangeListener l)
        Adds the listener for changes to the query.
        Parameters:
        l - the listener to add
      • removeQueryChangeListener

        public void removeQueryChangeListener​(ChangeListener l)
        Removes the listener for changes to the query.
        Parameters:
        l - the listener to remove
      • notifyQueryChangeListeners

        protected void notifyQueryChangeListeners()
        Notifies all listeners that the query has changed.