oracle.jdeveloper.cm
Class ConnectInformationDialog
java.lang.Object
oracle.jdeveloper.cm.ConnectInformationDialog
- All Implemented Interfaces:
- java.awt.event.ActionListener, ConnectInfoPrompter, java.util.EventListener
- public class ConnectInformationDialog
- extends java.lang.Object
- implements ConnectInfoPrompter, java.awt.event.ActionListener
ConnectInformationDialog
is the default security
prompt. It represents the only GUI portion of
ConnectionManager
. Users are highly recommended to
create their own dialogs which implement the
oracle.jdeveloper.cm.ConnectInfoPromter
interface;
this class is provided as a very simple default implementation.
- See Also:
ConnectInfoPrompter
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Implementation of the ActionListener interface. |
protected void |
addComponent(java.awt.Panel contentPane,
java.awt.Component component,
java.awt.GridBagLayout gridbag,
java.awt.GridBagConstraints c,
java.lang.String componentName)
|
protected java.lang.String |
getFieldValue(java.lang.String componentName)
|
void |
promptUser(ConnectionDescriptor descriptor)
prompts the user to fill in the given descriptor with the
appropriate username, password, and role. |
protected void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_descriptor
protected ConnectionDescriptor _descriptor
_contentPane
protected java.awt.Panel _contentPane
dialog
protected java.awt.Dialog dialog
ConnectInformationDialog
public ConnectInformationDialog()
promptUser
public void promptUser(ConnectionDescriptor descriptor)
throws CMException
- prompts the user to fill in the given descriptor with the
appropriate username, password, and role.
- Specified by:
promptUser
in interface ConnectInfoPrompter
- Parameters:
descriptor
- ConnectionDescriptor
describing the desired
connection.
- Throws:
CMException
- thrown if something goes wrong.
addComponent
protected void addComponent(java.awt.Panel contentPane,
java.awt.Component component,
java.awt.GridBagLayout gridbag,
java.awt.GridBagConstraints c,
java.lang.String componentName)
getFieldValue
protected java.lang.String getFieldValue(java.lang.String componentName)
run
protected void run()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Implementation of the
ActionListener
interface.
Used internally.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Parameters:
e
- an ActionEvent
Copyright ©1997, 2003, Oracle. All rights reserved.