|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.cm.dt.ConnectionEditor
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 |
public static final int ACTION_CREATE
public static final int ACTION_EDIT
public static final int FLAG_JDBC
public static final int FLAG_IIOP
public static final int FLAG_HTTP
public static final int FLAG_ORACLE_ONLY
public static final int FLAG_NO_CHANGE_TYPE
Constructor Detail |
public ConnectionEditor()
public ConnectionEditor(java.awt.Frame parent)
Frame
Method Detail |
public final void setParentFrame(java.awt.Frame parentFrame)
public final void setParentDialog(java.awt.Dialog parentDialog)
public final void setParent(java.awt.Frame parentFrame)
public final java.awt.Frame getParent()
public boolean runConnectionEditor(java.lang.String connName, int cmd)
connName
- name of the connection to edit, or default name to use
when creating a new connectioncmd
- Command to use. Currently these are ACTION_CREATE, and
ACTION_EDIT.
ACTION_EDIT
,
ACTION_CREATE
public boolean runConnectionEditor(java.lang.String connName, int cmd, java.lang.String[] allowedTypes)
connName
connName
- name of the connection to edit, or default name to use
when creating a new connectioncmd
- 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
ACTION_EDIT
,
ACTION_CREATE
public ConnectionDescriptor getConnectionDescriptor()
public void setConnectionDescriptor(ConnectionDescriptor newCdesc)
newCdesc
- New ConnectionDescriptorpublic static void setConnectionEditorDelegateClass(java.lang.Class c)
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.