Package org.h2.tools

Class GUIConsole

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.WindowListener, java.util.EventListener, ShutdownHandler

    public class GUIConsole
    extends Console
    implements java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.WindowListener
    Console for environments with AWT support.
    • Field Detail

      • lastOpenNs

        private long lastOpenNs
      • trayIconUsed

        private boolean trayIconUsed
      • font

        private java.awt.Font font
      • statusFrame

        private java.awt.Frame statusFrame
      • urlText

        private java.awt.TextField urlText
      • startBrowser

        private java.awt.Button startBrowser
      • createFrame

        private java.awt.Frame createFrame
      • pathField

        private java.awt.TextField pathField
      • userField

        private java.awt.TextField userField
      • passwordField

        private java.awt.TextField passwordField
      • passwordConfirmationField

        private java.awt.TextField passwordConfirmationField
      • createButton

        private java.awt.Button createButton
      • errorArea

        private java.awt.TextArea errorArea
      • tray

        private java.lang.Object tray
      • trayIcon

        private java.lang.Object trayIcon
    • Constructor Detail

      • GUIConsole

        public GUIConsole()
    • Method Detail

      • show

        void show()
        Description copied from class: Console
        Overridden by GUIConsole to show a window
        Overrides:
        show in class Console
      • loadImage

        private static java.awt.Image loadImage​(java.lang.String name)
      • shutdown

        public void shutdown()
        Description copied from class: Console
        INTERNAL. Stop all servers that were started using the console.
        Specified by:
        shutdown in interface ShutdownHandler
        Overrides:
        shutdown in class Console
      • loadFont

        private void loadFont()
      • createTrayIcon

        private boolean createTrayIcon()
      • showStatusWindow

        private void showStatusWindow()
      • startBrowser

        private void startBrowser()
      • showCreateDatabase

        private void showCreateDatabase()
      • createDatabase

        private void createDatabase()
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        INTERNAL
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • mouseClicked

        public void mouseClicked​(java.awt.event.MouseEvent e)
        INTERNAL
        Specified by:
        mouseClicked in interface java.awt.event.MouseListener
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        INTERNAL
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        INTERNAL
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        INTERNAL
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        INTERNAL
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
      • windowClosing

        public void windowClosing​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowClosing in interface java.awt.event.WindowListener
      • windowActivated

        public void windowActivated​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowActivated in interface java.awt.event.WindowListener
      • windowClosed

        public void windowClosed​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowClosed in interface java.awt.event.WindowListener
      • windowDeactivated

        public void windowDeactivated​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowDeactivated in interface java.awt.event.WindowListener
      • windowDeiconified

        public void windowDeiconified​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowDeiconified in interface java.awt.event.WindowListener
      • windowIconified

        public void windowIconified​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowIconified in interface java.awt.event.WindowListener
      • windowOpened

        public void windowOpened​(java.awt.event.WindowEvent e)
        INTERNAL
        Specified by:
        windowOpened in interface java.awt.event.WindowListener