Class SqlConnectionPanel

    • Field Detail

      • m_LabelConnection

        protected JLabel m_LabelConnection
        the label for the showing the active connection.
      • m_ButtonHistory

        protected BaseButton m_ButtonHistory
        the button for the history.
      • m_ButtonConnection

        protected BaseButton m_ButtonConnection
        the button for opening the connection dialog.
      • m_ConnectionChangeListeners

        protected Set<ChangeListener> m_ConnectionChangeListeners
        the change listeners for database connection changes.
    • Constructor Detail

      • SqlConnectionPanel

        public SqlConnectionPanel()
    • 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
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • showConnectionsPopup

        protected void showConnectionsPopup()
        Shows the popup menu with the connections.
      • connect

        protected void connect​(ConnectionParameters params)
        Connects using the parameters.
        Parameters:
        params - the connection parameters
      • enterConnection

        protected void enterConnection()
        Allows the user to select a connection.
      • updateConnection

        protected void updateConnection()
        Updates the displayed connection.
      • setEnabled

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

        public void addConnectionChangeListener​(ChangeListener l)
        Adds the listener for connection changes.
        Parameters:
        l - the listener to add
      • removeConnectionChangeListener

        public void removeConnectionChangeListener​(ChangeListener l)
        Removes the listener for connection changes.
        Parameters:
        l - the listener to remove
      • notifyConnectionChangeListeners

        protected void notifyConnectionChangeListeners()
        Notifies all connection change listeners.