Top Description Fields Constructors Methods
org.h2.tools

public Class GUIConsole

extends Console
implements ActionListener, MouseListener, WindowListener
Class Inheritance
All Implemented Interfaces
java.awt.event.WindowListener, java.util.EventListener, java.awt.event.MouseListener, java.awt.event.ActionListener
Imports
java.awt.Button, .Color, .Dimension, .Font, .Frame, .GraphicsEnvironment, .GridBagConstraints, .GridBagLayout, .Image, .Insets, .Label, .MenuItem, .Panel, .PopupMenu, .SystemColor, .TextArea, .TextField, .Toolkit, .Window, java.awt.event.ActionEvent, .ActionListener, .MouseEvent, .MouseListener, .WindowEvent, .WindowListener, java.io.IOException, java.util.Locale, org.h2.jdbc.JdbcConnection, org.h2.util.Utils

Console for environments with AWT support.

Field Summary

Modifier and TypeField and Description
private Button
private Frame
private TextArea
private Font
private long
private TextField
private TextField
private TextField
private Button
private Frame
private Object
private Object
private boolean
private TextField
private TextField
Inherited from org.h2.tools.Console:
isWindowsweb

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent
the event to be processed
e
)

Implements java.awt.event.ActionListener.actionPerformed.

INTERNAL

private void
private boolean
protected String
getMainClassName()

Overrides org.h2.util.Tool.getMainClassName.

Returns main class name of the tool.

private void
private static Image
public void
mouseClicked(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseClicked.

INTERNAL

public void
mouseEntered(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseEntered.

INTERNAL

public void
mouseExited(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseExited.

INTERNAL

public void
mousePressed(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mousePressed.

INTERNAL

public void
mouseReleased(MouseEvent
the event to be processed
e
)

Implements java.awt.event.MouseListener.mouseReleased.

INTERNAL

pack-priv void
show()

Overrides org.h2.tools.Console.show.

Overridden by GUIConsole to show a window

private void
private void
public void
private void
public void
windowActivated(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowActivated.

INTERNAL

public void
windowClosed(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosed.

INTERNAL

public void
windowClosing(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowClosing.

INTERNAL

public void
windowDeactivated(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeactivated.

INTERNAL

public void
windowDeiconified(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowDeiconified.

INTERNAL

public void
windowIconified(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowIconified.

INTERNAL

public void
windowOpened(WindowEvent
the event to be processed
e
)

Implements java.awt.event.WindowListener.windowOpened.

INTERNAL

Inherited from org.h2.tools.Console:
mainopenBrowserrunTool

Field Detail

createButtonback to summary
private Button createButton
createFrameback to summary
private Frame createFrame
errorAreaback to summary
private TextArea errorArea
fontback to summary
private Font font
lastOpenNsback to summary
private long lastOpenNs
passwordConfirmationFieldback to summary
private TextField passwordConfirmationField
passwordFieldback to summary
private TextField passwordField
pathFieldback to summary
private TextField pathField
startBrowserback to summary
private Button startBrowser
statusFrameback to summary
private Frame statusFrame
trayback to summary
private Object tray
trayIconback to summary
private Object trayIcon
trayIconUsedback to summary
private boolean trayIconUsed
urlTextback to summary
private TextField urlText
userFieldback to summary
private TextField userField

Constructor Detail

GUIConsoleback to summary
public GUIConsole()

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent e)

Implements java.awt.event.ActionListener.actionPerformed.

INTERNAL

Parameters
e:ActionEvent

Doc from java.awt.event.ActionListener.actionPerformed.

the event to be processed

Annotations
@Override
createDatabaseback to summary
private void createDatabase()
createTrayIconback to summary
private boolean createTrayIcon()
getMainClassNameback to summary
protected String getMainClassName()

Overrides org.h2.util.Tool.getMainClassName.

Doc from org.h2.util.Tool.getMainClassName.

Returns main class name of the tool.

Returns:String

the name of the main class

Annotations
@Override
loadFontback to summary
private void loadFont()
loadImageback to summary
private static Image loadImage(String name)
mouseClickedback to summary
public void mouseClicked(MouseEvent e)

Implements java.awt.event.MouseListener.mouseClicked.

INTERNAL

Parameters
e:MouseEvent

Doc from java.awt.event.MouseListener.mouseClicked.

the event to be processed

Annotations
@Override
mouseEnteredback to summary
public void mouseEntered(MouseEvent e)

Implements java.awt.event.MouseListener.mouseEntered.

INTERNAL

Parameters
e:MouseEvent

Doc from java.awt.event.MouseListener.mouseEntered.

the event to be processed

Annotations
@Override
mouseExitedback to summary
public void mouseExited(MouseEvent e)

Implements java.awt.event.MouseListener.mouseExited.

INTERNAL

Parameters
e:MouseEvent

Doc from java.awt.event.MouseListener.mouseExited.

the event to be processed

Annotations
@Override
mousePressedback to summary
public void mousePressed(MouseEvent e)

Implements java.awt.event.MouseListener.mousePressed.

INTERNAL

Parameters
e:MouseEvent

Doc from java.awt.event.MouseListener.mousePressed.

the event to be processed

Annotations
@Override
mouseReleasedback to summary
public void mouseReleased(MouseEvent e)

Implements java.awt.event.MouseListener.mouseReleased.

INTERNAL

Parameters
e:MouseEvent

Doc from java.awt.event.MouseListener.mouseReleased.

the event to be processed

Annotations
@Override
showback to summary
pack-priv void show()

Overrides org.h2.tools.Console.show.

Doc from org.h2.tools.Console.show.

Overridden by GUIConsole to show a window

Annotations
@Override
showCreateDatabaseback to summary
private void showCreateDatabase()
showStatusWindowback to summary
private void showStatusWindow()
shutdownback to summary
public void shutdown()

Overrides org.h2.tools.Console.shutdown.

Implements org.h2.server.ShutdownHandler.shutdown.

Doc from org.h2.tools.Console.shutdown.

INTERNAL. Stop all servers that were started using the console.

Annotations
@Override
startBrowserback to summary
private void startBrowser()
windowActivatedback to summary
public void windowActivated(WindowEvent e)

Implements java.awt.event.WindowListener.windowActivated.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowActivated.

the event to be processed

Annotations
@Override
windowClosedback to summary
public void windowClosed(WindowEvent e)

Implements java.awt.event.WindowListener.windowClosed.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowClosed.

the event to be processed

Annotations
@Override
windowClosingback to summary
public void windowClosing(WindowEvent e)

Implements java.awt.event.WindowListener.windowClosing.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowClosing.

the event to be processed

Annotations
@Override
windowDeactivatedback to summary
public void windowDeactivated(WindowEvent e)

Implements java.awt.event.WindowListener.windowDeactivated.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowDeactivated.

the event to be processed

Annotations
@Override
windowDeiconifiedback to summary
public void windowDeiconified(WindowEvent e)

Implements java.awt.event.WindowListener.windowDeiconified.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowDeiconified.

the event to be processed

Annotations
@Override
windowIconifiedback to summary
public void windowIconified(WindowEvent e)

Implements java.awt.event.WindowListener.windowIconified.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowIconified.

the event to be processed

Annotations
@Override
windowOpenedback to summary
public void windowOpened(WindowEvent e)

Implements java.awt.event.WindowListener.windowOpened.

INTERNAL

Parameters
e:WindowEvent

Doc from java.awt.event.WindowListener.windowOpened.

the event to be processed

Annotations
@Override