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.ButtoncreateButtonprivate java.awt.FramecreateFrameprivate java.awt.TextAreaerrorAreaprivate java.awt.Fontfontprivate longlastOpenNsprivate java.awt.TextFieldpasswordConfirmationFieldprivate java.awt.TextFieldpasswordFieldprivate java.awt.TextFieldpathFieldprivate java.awt.ButtonstartBrowserprivate java.awt.FramestatusFrameprivate java.lang.Objecttrayprivate java.lang.ObjecttrayIconprivate booleantrayIconUsedprivate java.awt.TextFieldurlTextprivate java.awt.TextFielduserField
-
Constructor Summary
Constructors Constructor Description GUIConsole()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)INTERNALprivate voidcreateDatabase()private booleancreateTrayIcon()private voidloadFont()private static java.awt.ImageloadImage(java.lang.String name)voidmouseClicked(java.awt.event.MouseEvent e)INTERNALvoidmouseEntered(java.awt.event.MouseEvent e)INTERNALvoidmouseExited(java.awt.event.MouseEvent e)INTERNALvoidmousePressed(java.awt.event.MouseEvent e)INTERNALvoidmouseReleased(java.awt.event.MouseEvent e)INTERNAL(package private) voidshow()Overridden by GUIConsole to show a windowprivate voidshowCreateDatabase()private voidshowStatusWindow()voidshutdown()INTERNAL.private voidstartBrowser()voidwindowActivated(java.awt.event.WindowEvent e)INTERNALvoidwindowClosed(java.awt.event.WindowEvent e)INTERNALvoidwindowClosing(java.awt.event.WindowEvent e)INTERNALvoidwindowDeactivated(java.awt.event.WindowEvent e)INTERNALvoidwindowDeiconified(java.awt.event.WindowEvent e)INTERNALvoidwindowIconified(java.awt.event.WindowEvent e)INTERNALvoidwindowOpened(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:ConsoleOverridden 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:ConsoleINTERNAL. Stop all servers that were started using the console.- Specified by:
shutdownin interfaceShutdownHandler- Overrides:
shutdownin 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:
actionPerformedin interfacejava.awt.event.ActionListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
INTERNAL- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowClosingin interfacejava.awt.event.WindowListener
-
windowActivated
public void windowActivated(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowActivatedin interfacejava.awt.event.WindowListener
-
windowClosed
public void windowClosed(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowClosedin interfacejava.awt.event.WindowListener
-
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowDeactivatedin interfacejava.awt.event.WindowListener
-
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowDeiconifiedin interfacejava.awt.event.WindowListener
-
windowIconified
public void windowIconified(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowIconifiedin interfacejava.awt.event.WindowListener
-
windowOpened
public void windowOpened(java.awt.event.WindowEvent e)
INTERNAL- Specified by:
windowOpenedin interfacejava.awt.event.WindowListener
-
-