Class com.ibm.db.LogonDialog
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----com.ibm.db.LogonDialog
- public class LogonDialog
- extends Dialog
- implements ActionListener, WindowListener
LogonDialog represents a dialog to obtain the userID and password prior to making
a connection to the database.
- Version:
- 1.0 06/30/98
Constructor Index
- LogonDialog(Component)
- Constructs a new LogonDialog.
Method Index
- actionPerformed(ActionEvent)
- Handles actionPerformed events.
- getInsets()
- Returns the insets for the dialog.
- promptAndSetUID(DatabaseConnectionSpec)
- Displays a logon dialog to obtain the userid and password.
- promptAndSetUID(String[], String[])
- Displays a logon dialog to obtain the userid and password.
- windowActivated(WindowEvent)
- Method to handle events for the WindowListener interface.
- windowClosed(WindowEvent)
- Method to handle events for the WindowListener interface.
- windowClosing(WindowEvent)
- Method to handle events for the WindowListener interface.
- windowDeactivated(WindowEvent)
- Method to handle events for the WindowListener interface.
- windowDeiconified(WindowEvent)
- Method to handle events for the WindowListener interface.
- windowIconified(WindowEvent)
- Method to handle events for the WindowListener interface.
- windowOpened(WindowEvent)
- Method to handle events for the WindowListener interface.
Constructors
LogonDialog
public LogonDialog(Component c)
- Constructs a new LogonDialog.
Methods
actionPerformed
public void actionPerformed(ActionEvent e)
- Handles actionPerformed events.
- Parameters:
- e - ActionPerformed event
getInsets
public Insets getInsets()
- Returns the insets for the dialog.
- Overrides:
- getInsets in class Container
promptAndSetUID
public boolean promptAndSetUID(String uid[],
String pwd[])
- Displays a logon dialog to obtain the userid and password. The passed userid and password
are used to initialize the dialog.
- Parameters:
- uid - the userid
- pwd - password
promptAndSetUID
public boolean promptAndSetUID(DatabaseConnectionSpec c) throws DataException
- Displays a logon dialog to obtain the userid and password. The userid and password from
the specified DatabaseConnectionSpec are used to initialize the dialog.
If a connection has already been established for the connection alias name specified in
the DatabaseConnectionSpec, no dialog is displayed since the connection is already
established.
- Parameters:
- c - the DatabaseConnectionSpec
windowActivated
public void windowActivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosed
public void windowClosed(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowClosing
public void windowClosing(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeactivated
public void windowDeactivated(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowDeiconified
public void windowDeiconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowIconified
public void windowIconified(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
windowOpened
public void windowOpened(WindowEvent e)
- Method to handle events for the WindowListener interface.
- Parameters:
- e - java.awt.event.WindowEvent
