Extension SDK 10.1.2


oracle.jdeveloper.cm.dt
Class ConnectionEditor

java.lang.Object
  extended byoracle.jdeveloper.cm.dt.ConnectionEditor


public final class ConnectionEditor
extends java.lang.Object

Connection Editor using the Bali Wizard Framework. You invoke the Connection Editor dialog via the runConnectionEditor(String, int) method on this object.

Example:

 public void createSpecificTypeConnection()
 {
   ConnectionEditor c = new ConnectionEditor(parentFrame);
   String[] types = new String[] { ConnectionDescriptor.CONN_ORACLE_JDBC };
   c.runConnectionEditor(null, ConnectionEditor.ACTION_CREATE, types);
 }
 
 public void createAnyConnection()
 {
   ConnectionEditor c = new ConnectionEditor(parentFrame);
   c.runConnectionEditor(null, ConnectionEditor.ACTION_CREATE, null);
 }
 

Field Summary
static int ACTION_CREATE
Create a new Connection
static int ACTION_EDIT
Edit an existing Connection
static int FLAG_HTTP
UNUSED
static int FLAG_IIOP
UNUSED
static int FLAG_JDBC
UNUSED
static int FLAG_NO_CHANGE_TYPE
UNUSED
static int FLAG_ORACLE_ONLY
UNUSED

Constructor Summary
ConnectionEditor()
Default Constructor
ConnectionEditor(java.awt.Frame parent)
Default Constructor which sets the parent Frame

Method Summary
ConnectionDescriptor getConnectionDescriptor()
Gets the ConnectionDescriptor in use by this editor
java.awt.Frame getParent()
boolean runConnectionEditor(java.lang.String connName, int cmd)
Invokes the Connection Editor.
boolean runConnectionEditor(java.lang.String connName, int cmd, java.lang.String[] allowedTypes)
Invokes the Connection Editor on the connName
void setConnectionDescriptor(ConnectionDescriptor newCdesc)
Sets the ConnectionDescriptor
static void setConnectionEditorDelegateClass(java.lang.Class c)
void setParent(java.awt.Frame parentFrame)
void setParentDialog(java.awt.Dialog parentDialog)
Sets the parent Dialog
void setParentFrame(java.awt.Frame parentFrame)
Sets the parent Frame

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

ACTION_CREATE

public static final int ACTION_CREATE
Create a new Connection
See Also:
Constant Field Values

ACTION_EDIT

public static final int ACTION_EDIT
Edit an existing Connection
See Also:
Constant Field Values

FLAG_JDBC

public static final int FLAG_JDBC
UNUSED
See Also:
Constant Field Values

FLAG_IIOP

public static final int FLAG_IIOP
UNUSED
See Also:
Constant Field Values

FLAG_HTTP

public static final int FLAG_HTTP
UNUSED
See Also:
Constant Field Values

FLAG_ORACLE_ONLY

public static final int FLAG_ORACLE_ONLY
UNUSED
See Also:
Constant Field Values

FLAG_NO_CHANGE_TYPE

public static final int FLAG_NO_CHANGE_TYPE
UNUSED
See Also:
Constant Field Values

Constructor Detail

ConnectionEditor

public ConnectionEditor()
Default Constructor

ConnectionEditor

public ConnectionEditor(java.awt.Frame parent)
Default Constructor which sets the parent Frame

Method Detail

setParentFrame

public final void setParentFrame(java.awt.Frame parentFrame)
Sets the parent Frame

setParentDialog

public final void setParentDialog(java.awt.Dialog parentDialog)
Sets the parent Dialog

setParent

public final void setParent(java.awt.Frame parentFrame)

getParent

public final java.awt.Frame getParent()

runConnectionEditor

public boolean runConnectionEditor(java.lang.String connName,
                                   int cmd)
Invokes the Connection Editor.
Parameters:
connName - name of the connection to edit, or default name to use when creating a new connection
cmd - Command to use. Currently these are ACTION_CREATE, and ACTION_EDIT.
See Also:
ACTION_EDIT, ACTION_CREATE

runConnectionEditor

public boolean runConnectionEditor(java.lang.String connName,
                                   int cmd,
                                   java.lang.String[] allowedTypes)
Invokes the Connection Editor on the connName
Parameters:
connName - name of the connection to edit, or default name to use when creating a new connection
cmd - Command to use. Currently these are ACTION_CREATE, and ACTION_EDIT.
allowedTypes - Array of allowable connection types. The result of ConnectionType#getTypeName() is compared against the array of values. This parameter is only used if the cmd is ACTION_CREATE
See Also:
ACTION_EDIT, ACTION_CREATE

getConnectionDescriptor

public ConnectionDescriptor getConnectionDescriptor()
Gets the ConnectionDescriptor in use by this editor

setConnectionDescriptor

public void setConnectionDescriptor(ConnectionDescriptor newCdesc)
Sets the ConnectionDescriptor
Parameters:
newCdesc - New ConnectionDescriptor

setConnectionEditorDelegateClass

public static void setConnectionEditorDelegateClass(java.lang.Class c)

Extension SDK


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