Top Description Fields Constructors Methods
org.hsqldb.util

pack-priv Class ConnectionDialogSwing

extends JDialog
implements ActionListener, ItemListener
Class Inheritance
All Implemented Interfaces
java.awt.event.ItemListener, java.util.EventListener, java.awt.event.ActionListener
Imports
java.sql.Connection, .DriverManager, .SQLException, java.util.Hashtable, .Iterator, .Vector, java.awt.Dimension, .Toolkit, java.awt.event.ActionEvent, .ActionListener, .ItemEvent, .ItemListener, javax.swing.Box, .JButton, .JComboBox, .JDialog, .JFrame, .JLabel, .JPanel, .JPasswordField, .JTextField, .SwingUtilities, javax.swing.border.EmptyBorder

Opens a connection to a database
Author
dmarshall@users
Since
1.7.0
Version
2.5.0

Field Summary

Modifier and TypeField and Description
private String[][]
private static ConnectionSetting
private Connection
private JTextField
private JTextField
private JPasswordField
private JComboBox<E>
private JTextField
private JTextField
private static final long
serialVersionUID

Hides java.awt.Dialog.serialVersionUID.

Comment for serialVersionUID
private Hashtable<K, V>
Inherited from javax.swing.JDialog:
accessibleContextrootPanerootPaneCheckingEnabled

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
public static Connection
createConnection(String driver, String url, String user, String password)

public static Connection
private static JLabel
public void
itemStateChanged(ItemEvent e)

Implements java.awt.event.ItemListener.itemStateChanged.

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

public Vector<E>
public static void
Inherited from javax.swing.JDialog:
addImplcreateRootPanedialogInitgetAccessibleContextgetContentPanegetDefaultCloseOperationgetGlassPanegetGraphicsgetJMenuBargetLayeredPanegetRootPanegetTransferHandlerisDefaultLookAndFeelDecoratedisRootPaneCheckingEnabledparamStringprocessWindowEventremoverepaintsetContentPanesetDefaultCloseOperationsetDefaultLookAndFeelDecoratedsetGlassPanesetJMenuBarsetLayeredPanesetLayoutsetRootPanesetRootPaneCheckingEnabledsetTransferHandlerupdate

Field Detail

connTypesback to summary
private String[][] connTypes
currentConnectionSettingback to summary
private static ConnectionSetting currentConnectionSetting
mConnectionback to summary
private Connection mConnection
mDriverback to summary
private JTextField mDriver
mNameback to summary
private JTextField mName
mPasswordback to summary
private JPasswordField mPassword
mSettingNameback to summary
private JComboBox<E> mSettingName
mURLback to summary
private JTextField mURL
mUserback to summary
private JTextField mUser
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.Dialog.serialVersionUID.

Comment for serialVersionUID

settingsback to summary
private Hashtable<K, V> settings

Constructor Detail

ConnectionDialogSwingback to summary
pack-priv ConnectionDialogSwing(JFrame 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()
createConnectionback to summary
public static Connection createConnection(String driver, String url, String user, String password) throws Exception
createConnectionback to summary
public static Connection createConnection(JFrame owner, String title)
createLabelback to summary
private static JLabel 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).

loadRecentConnectionSettingsback to summary
public Vector<E> loadRecentConnectionSettings()
setConnectionSettingback to summary
public static void setConnectionSetting(ConnectionSetting connectionSetting)