Package org.h2.tools
Class GUIConsole
- java.lang.Object
-
- org.h2.util.Tool
-
- org.h2.tools.Console
-
- org.h2.tools.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 Summary
Fields Modifier and Type Field Description private java.awt.Button
createButton
private java.awt.Frame
createFrame
private java.awt.TextArea
errorArea
private java.awt.Font
font
private long
lastOpenNs
private java.awt.TextField
passwordConfirmationField
private java.awt.TextField
passwordField
private java.awt.TextField
pathField
private java.awt.Button
startBrowser
private java.awt.Frame
statusFrame
private java.lang.Object
tray
private java.lang.Object
trayIcon
private boolean
trayIconUsed
private java.awt.TextField
urlText
private java.awt.TextField
userField
-
Constructor Summary
Constructors Constructor Description GUIConsole()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
INTERNALprivate void
createDatabase()
private boolean
createTrayIcon()
private void
loadFont()
private static java.awt.Image
loadImage(java.lang.String name)
void
mouseClicked(java.awt.event.MouseEvent e)
INTERNALvoid
mouseEntered(java.awt.event.MouseEvent e)
INTERNALvoid
mouseExited(java.awt.event.MouseEvent e)
INTERNALvoid
mousePressed(java.awt.event.MouseEvent e)
INTERNALvoid
mouseReleased(java.awt.event.MouseEvent e)
INTERNAL(package private) void
show()
Overridden by GUIConsole to show a windowprivate void
showCreateDatabase()
private void
showStatusWindow()
void
shutdown()
INTERNAL.private void
startBrowser()
void
windowActivated(java.awt.event.WindowEvent e)
INTERNALvoid
windowClosed(java.awt.event.WindowEvent e)
INTERNALvoid
windowClosing(java.awt.event.WindowEvent e)
INTERNALvoid
windowDeactivated(java.awt.event.WindowEvent e)
INTERNALvoid
windowDeiconified(java.awt.event.WindowEvent e)
INTERNALvoid
windowIconified(java.awt.event.WindowEvent e)
INTERNALvoid
windowOpened(java.awt.event.WindowEvent e)
INTERNAL-
Methods inherited from class org.h2.tools.Console
main, openBrowser, runTool
-
Methods inherited from class org.h2.util.Tool
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOption
-
-
-
-
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
-
-
Method Detail
-
show
void show()
Description copied from class:Console
Overridden by GUIConsole to show a window
-
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 interfaceShutdownHandler
- Overrides:
shutdown
in classConsole
-
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 interfacejava.awt.event.ActionListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowClosing
in interfacejava.awt.event.WindowListener
-
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowActivated
in interfacejava.awt.event.WindowListener
-
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowClosed
in interfacejava.awt.event.WindowListener
-
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowDeactivated
in interfacejava.awt.event.WindowListener
-
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowDeiconified
in interfacejava.awt.event.WindowListener
-
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowIconified
in interfacejava.awt.event.WindowListener
-
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowOpened
in interfacejava.awt.event.WindowListener
-
-