Extension SDK

oracle.jdeveloper.cm
Class ConnectInformationDialog

java.lang.Object
  extended byoracle.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

Field Summary
protected  java.awt.Panel _contentPane
           
protected  ConnectionDescriptor _descriptor
           
protected  java.awt.Dialog dialog
           
 
Constructor Summary
ConnectInformationDialog()
           
 
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
 

Field Detail

_descriptor

protected ConnectionDescriptor _descriptor

_contentPane

protected java.awt.Panel _contentPane

dialog

protected java.awt.Dialog dialog
Constructor Detail

ConnectInformationDialog

public ConnectInformationDialog()
Method Detail

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

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.