public class GlobalConnectionPanelUI extends AbstractConnectionPanelUI
Only use this component in a feature that is global to all database
connections (e.g. SQL Worksheet) and not based solely in an application
based technology. Use AppConnectionPanelUI for application
based technologies.
The picker will contain connections from the current Application and the Resource Palette for all cases except for when the Database Navigator is the current View. In that case ALL Applications' connections and the IDE Connections are shown.
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalConnectionPanelUI.ChosenConnection
Deprecated.
- use
ConnectionInfo |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
GlobalConnectionPanelUI() |
GlobalConnectionPanelUI(boolean oracleOnly) |
GlobalConnectionPanelUI(java.lang.String[] subTypes) |
GlobalConnectionPanelUI(java.lang.String[] subTypes,
boolean showDetails) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getComponentNamePrefix()
Gets a prefix for the names of the components for testability.
|
static ConnectionInfo |
getConnection(ConnectionInfo connInfo)
Invokes a dialog for selecting a connection.
|
static ConnectionInfo |
getConnection(ConnectionInfo connInfo,
boolean oraOnly,
Context context)
Invokes a dialog for selecting a connection.
|
static ConnectionInfo |
getConnection(java.lang.String title,
java.lang.String prompt,
ConnectionInfo connInfo,
boolean oraOnly,
Context ideContext)
Invokes a dialog for selecting a connection.
|
static ConnectionInfo |
getConnection(java.lang.String title,
java.lang.String prompt,
java.lang.String storeName,
java.lang.String connName)
Deprecated.
|
static ConnectionInfo |
getConnection(java.lang.String title,
java.lang.String prompt,
java.lang.String storeName,
java.lang.String connName,
boolean oraOnly)
Deprecated.
|
ConnectionInfo |
getConnectionInfo()
Gets the connection details for the currently chosen connection.
|
oracle.jdevimpl.db.controls.GlobalConnectionPicker |
getPicker()
Gets the picker combo for the actual connection.
|
protected void |
launchConnectionDialog(boolean edit)
Launches the dialog for creating a new connection, or editing the currently
selected connection.
|
int |
resetConnections()
Resets the list of connections.
|
void |
setConnectionInfo(ConnectionInfo info)
Sets the ConnectionInfo for the picker to use.
|
void |
setContext(Context ideContext) |
void |
setNoConnectionString(java.lang.String noConn)
Sets a string that (if not null) will be added to the list of connections
to allow the selection of "No Connection".
|
addButton, addButtons, addComboListener, addNotify, checkConnection, checkFocus, clearLastShownInfo, disableDetails, enableActiveComponents, enableButtons, fireSelectionChanged, getConnection, getContext, getDefaultFocusComponent, getDetailsPanel, getListeners, getNoConnectionString, getOracleSubType, getPromptText, getResourceHelper, getSubTypes, initialise, isListening, populateDetails, removeComboListener, setAddButtons, setConnectionLabel, setConnectionPrompt, setEnabled, setListening, setShowDetailsgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic GlobalConnectionPanelUI()
public GlobalConnectionPanelUI(boolean oracleOnly)
public GlobalConnectionPanelUI(java.lang.String[] subTypes)
public GlobalConnectionPanelUI(java.lang.String[] subTypes,
boolean showDetails)
protected java.lang.String getComponentNamePrefix()
AbstractConnectionPanelUIgetComponentNamePrefix in class AbstractConnectionPanelUIpublic final ConnectionInfo getConnectionInfo()
AbstractConnectionPanelUIgetConnectionInfo in class AbstractConnectionPanelUIpublic final void setConnectionInfo(ConnectionInfo info)
setConnectionInfo in class AbstractConnectionPanelUIinfo - public final void setContext(Context ideContext)
setContext in class AbstractConnectionPanelUIpublic final oracle.jdevimpl.db.controls.GlobalConnectionPicker getPicker()
AbstractConnectionPanelUIgetPicker in class AbstractConnectionPanelUIprotected final void launchConnectionDialog(boolean edit)
AbstractConnectionPanelUIlaunchConnectionDialog in class AbstractConnectionPanelUIpublic int resetConnections()
AbstractConnectionPanelUIresetConnections in class AbstractConnectionPanelUIpublic void setNoConnectionString(java.lang.String noConn)
AbstractConnectionPanelUInoConn is null this will mean the user must pick a connection.
For an empty entry in the list set it to " ".setNoConnectionString in class AbstractConnectionPanelUInoConn - a string to signify no selection (e.g.
"<No Connection>"), or null to ensure the user must pick
a connection (the default).@Deprecated public static ConnectionInfo getConnection(java.lang.String title, java.lang.String prompt, java.lang.String storeName, java.lang.String connName)
getConnection(String,String,ConnectionInfo,boolean,Context)@Deprecated public static ConnectionInfo getConnection(java.lang.String title, java.lang.String prompt, java.lang.String storeName, java.lang.String connName, boolean oraOnly)
getConnection(String,String,ConnectionInfo,boolean,Context)public static ConnectionInfo getConnection(ConnectionInfo connInfo)
AppConnectionPanelUI.connInfo - the initially selected connection or null
to use the default. If provided the chosen connection information will also
be set here.public static ConnectionInfo getConnection(ConnectionInfo connInfo, boolean oraOnly, Context context)
AppConnectionPanelUI.connInfo - the initially selected connection or null
to use the default. If provided the chosen connection information will also
be set here.oraOnly - whether to only display Oracle connections.context - the current IDE context - this is used to determine which
connection stores are appropriate for the user to choose from.
null ensures all stores will be available.public static ConnectionInfo getConnection(java.lang.String title, java.lang.String prompt, ConnectionInfo connInfo, boolean oraOnly, Context ideContext)
AppConnectionPanelUI.title - the dialog titleprompt - the prompt string for the dialogconnInfo - the initially selected connection or null
to use the default. If provided the chosen connection information will also
be set here.oraOnly - whether to only display Oracle connections.ideContext - the current IDE context - this is used to determine which
connection stores are appropriate for the user to choose from.
null ensures all stores will be available.