public class AppConnectionPanelUI extends ConnectionPanelUI
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
AppConnectionPanelUI(boolean showDetails) |
AppConnectionPanelUI(boolean oracleOnly,
boolean showDetails) |
AppConnectionPanelUI(java.lang.String[] dbSubTypes,
boolean showDetails) |
Modifier and Type | Method and Description |
---|---|
protected void |
addButtons(javax.swing.JPanel panel,
java.awt.GridBagConstraints gbc)
This adds the buttons on the RHS of the connection combo box.
|
void |
enableActiveComponents(boolean boo)
Enables or disables the picker component, but not the descriptive text.
|
protected void |
enableButtons(boolean validConn)
Used to enable/disable buttons that require a valid connection to be
selected for their enabled state.
|
protected java.lang.String |
getComponentNamePrefix()
Gets a prefix for the names of the components for testability.
|
static java.lang.String |
getConnection(java.lang.String title,
java.lang.String prompt,
java.lang.String connName,
boolean oracleOnly)
Invokes a dialog for selecting a connection from the Application Resources
for the current active Application.
|
protected DatabaseConnections |
getConnections()
Used by the default implementation of
ConnectionPanelUI.listConnections() to
return the DatabaseConnections instance that contains the connections
to choose from. |
protected java.lang.String |
getStoreName()
Gets the name of the connection store from which the connections are
to be listed.
|
protected java.util.Collection<java.lang.String> |
listConnections()
By default this lists the connections on the DatabaseConnections
instance returned by
ConnectionPanelUI.getConnections() . |
protected java.lang.String |
runIdeConnectionDialog() |
void |
setContext(Context context) |
actionPerformed, createDatabaseConnectionEditorLauncher, getCanAddNull, getConnCombo, getConnectionInfo, getConnectionName, getPicker, getPropertyStorage, getSettingsKey, itemStateChanged, launchConnectionDialog, loadSettings, resetConnections, runConnectionDialog, saveSettings, setCanAddNull, setConnectionInfo, setConnectionName
addButton, addComboListener, addNotify, checkConnection, checkFocus, clearLastShownInfo, disableDetails, fireSelectionChanged, getConnection, getContext, getDefaultFocusComponent, getDetailsPanel, getListeners, getNoConnectionString, getOracleSubType, getPromptText, getResourceHelper, getSubTypes, initialise, isListening, populateDetails, removeComboListener, setAddButtons, setConnectionLabel, setConnectionPrompt, setEnabled, setListening, setNoConnectionString, setShowDetails
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, update
add, 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, validateTree
action, 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, transferFocusUpCycle
public AppConnectionPanelUI(boolean showDetails)
public AppConnectionPanelUI(boolean oracleOnly, boolean showDetails)
public AppConnectionPanelUI(java.lang.String[] dbSubTypes, boolean showDetails)
protected void addButtons(javax.swing.JPanel panel, java.awt.GridBagConstraints gbc)
AbstractConnectionPanelUI
addButtons
in class AbstractConnectionPanelUI
protected java.lang.String getComponentNamePrefix()
AbstractConnectionPanelUI
getComponentNamePrefix
in class ConnectionPanelUI
protected DatabaseConnections getConnections()
ConnectionPanelUI
ConnectionPanelUI.listConnections()
to
return the DatabaseConnections instance that contains the connections
to choose from.getConnections
in class ConnectionPanelUI
public final void setContext(Context context)
setContext
in class AbstractConnectionPanelUI
protected java.lang.String runIdeConnectionDialog()
protected void enableButtons(boolean validConn)
AbstractConnectionPanelUI
enableButtons
in class AbstractConnectionPanelUI
validConn
- whether the current selection contains a valid connectionpublic void enableActiveComponents(boolean boo)
AbstractConnectionPanelUI
enableActiveComponents
in class AbstractConnectionPanelUI
protected java.util.Collection<java.lang.String> listConnections()
ConnectionPanelUI
ConnectionPanelUI.getConnections()
.
Subclasses can override to provide any list of connection names
required.listConnections
in class ConnectionPanelUI
public static java.lang.String getConnection(java.lang.String title, java.lang.String prompt, java.lang.String connName, boolean oracleOnly)
title
- the dialog titleprompt
- the prompt string for the dialogconnName
- the initially selected connection name, or null
to
use the defaultconnClassName
- the connection class to prompt fororacleOnly
- whether to only display Oracle connections.protected java.lang.String getStoreName()
ConnectionPanelUI
getStoreName
in class ConnectionPanelUI