Top Description Fields Constructors Methods
org.hsqldb.util

pack-priv Class ConnectionDialog

extends Dialog
implements ActionListener, ItemListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ItemListener, java.util.EventListener, java.awt.event.ActionListener
Imports
java.sql.Connection, .DriverManager, java.util.Enumeration, .Hashtable, java.awt.BorderLayout, .Button, .Choice, .Component, .Dialog, .Dimension, .Frame, .GridLayout, .Label, .Panel, .SystemColor, .TextField, .Toolkit, java.awt.event.ActionEvent, .ActionListener, .ItemEvent, .ItemListener

Opens a connection to a database
Author
Thomas Mueller (Hypersonic SQL Group)
Since
Hypersonic SQL
Version
2.5.0

Field Summary

Modifier and TypeField and Description
private String[][]
protected Connection
protected TextField
protected Label
protected TextField
protected TextField
protected TextField
protected TextField
private Choice
private Hashtable<K, V>
private Choice
Inherited from java.awt.Dialog:
DEFAULT_MODALITY_TYPE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

Invoked when an action occurs.

private void
protected static Panel
public static Connection
createConnection(String driver, String url, String user, String password)

public static Connection
protected static Label
public void
itemStateChanged(ItemEvent e)

Implements java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user.

Inherited from java.awt.Dialog:
addNotifygetAccessibleContextgetModalityTypegetTitlehideisModalisResizableisUndecoratedparamStringsetBackgroundsetModalsetModalityTypesetOpacitysetResizablesetShapesetTitlesetUndecoratedsetVisibleshowtoBack

Field Detail

connTypesback to summary
private String[][] connTypes
mConnectionback to summary
protected Connection mConnection
mDriverback to summary
protected TextField mDriver
mErrorback to summary
protected Label mError
mNameback to summary
protected TextField mName
mPasswordback to summary
protected TextField mPassword
mURLback to summary
protected TextField mURL
mUserback to summary
protected TextField mUser
recentback to summary
private Choice recent
settingsback to summary
private Hashtable<K, V> settings
typesback to summary
private Choice types

Constructor Detail

ConnectionDialogback to summary
pack-priv ConnectionDialog(Frame owner, String title)

Method Detail

actionPerformedback to summary
public void actionPerformed(ActionEvent ev)

Implements java.awt.event.ActionListener.actionPerformed.

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

Invoked when an action occurs.

createback to summary
private void create()
createBorderPanelback to summary
protected static Panel createBorderPanel(Component center)
createConnectionback to summary
public static Connection createConnection(String driver, String url, String user, String password) throws Exception
createConnectionback to summary
public static Connection createConnection(Frame owner, String title)
createLabelback to summary
protected static Label createLabel(String s)
itemStateChangedback to summary
public void itemStateChanged(ItemEvent e)

Implements java.awt.event.ItemListener.itemStateChanged.

Doc from java.awt.event.ItemListener.itemStateChanged.

Invoked when an item has been selected or deselected by the user. The code written for this method performs the operations that need to occur when an item is selected (or deselected).