|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
oracle.ide.panels.DefaultTraversablePanel
oracle.jdeveloper.panels.SelectDatabaseObjectsPanel
public abstract class SelectDatabaseObjectsPanel
Base panel for selecting database objects using a shuttle control, typically for conversion into a Java object such as an EJB, an ordinary Java class, or a BC4J Entity object.
Users may optionally filter their selection by schema name and/or db object name match string.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected oracle.bali.ewt.shuttle.ListPicker |
_availableTablesPicker |
protected boolean |
_canSelectSynonyms |
protected boolean |
_canSelectViews |
protected java.util.Set |
_chosenTablesSet |
protected java.lang.String |
_connectionUrl |
protected SwingWorker |
_connWorker |
protected java.lang.String |
_currSchema |
protected java.lang.String |
_currTableFilter |
protected javax.swing.JPanel |
_dbObjQueryAlertPanel |
protected boolean |
_entityFieldIncluded |
protected boolean |
_includeEntityField |
protected boolean |
_includeSnapshotsCheck |
protected boolean |
_initialized |
protected Namespace |
_namespace |
protected java.util.ArrayList |
_queriedTablesList |
protected SwingWorker |
_schemaWorker |
protected oracle.bali.ewt.shuttle.Shuttle |
_shuttle |
protected boolean |
_snapshotsIncluded |
protected boolean |
_synonymSelectIncluded |
protected SwingWorker |
_tableWorker |
protected boolean |
_viewSelectIncluded |
protected WizardCallbacks |
_wizardCallbacks |
static java.lang.String |
AUTO_QUERY_CHECK_NAME |
protected javax.swing.JCheckBox |
autoQueryCheck |
static java.lang.String |
AVAILABLE_TABLES_LIST_NAME |
protected javax.swing.JList |
availableTablesList |
protected javax.swing.DefaultListModel |
availableTablesModel |
static java.lang.String |
CHOSEN_TABLES |
static java.lang.String |
CHOSEN_TABLES_LIST_NAME |
protected javax.swing.JList |
chosenTablesList |
protected javax.swing.DefaultListModel |
chosenTablesModel |
static java.lang.String |
CURR_CONN_NAME |
static java.lang.String |
DATABASE_METADATA |
protected javax.swing.JPanel |
dbObjPanel |
static java.lang.String |
ENTITY_FIELD_NAME |
protected javax.swing.JTextField |
entityNameField |
protected javax.swing.JLabel |
entityNameLabel |
static java.lang.String |
FILTER_FIELD_NAME |
protected javax.swing.JTextField |
filterField |
static java.lang.String |
QUERY_BUTTON_NAME |
protected javax.swing.JButton |
queryButton |
static java.lang.String |
SCHEMA_COMBO_NAME |
protected javax.swing.JComboBox |
schemaCombo |
static java.lang.String |
SELECT_DB_OBJECTS_SETTINGS_KEY |
static java.lang.String |
SETTINGS_AUTO_QUERY_KEY |
static java.lang.String |
SETTINGS_QUERY_SNAPSHOTS_KEY |
static java.lang.String |
SETTINGS_QUERY_SYNONYMS_KEY |
static java.lang.String |
SETTINGS_QUERY_TABLES_KEY |
static java.lang.String |
SETTINGS_QUERY_VIEWS_KEY |
static java.lang.String |
SNAPSHOTS_CHECK_NAME |
protected javax.swing.JCheckBox |
snapshotsCheck |
static java.lang.String |
SYNONYMS_CHECK_NAME |
protected javax.swing.JCheckBox |
synonymsCheck |
protected static java.awt.datatransfer.DataFlavor |
TABLE_FLAVOR |
static java.lang.String |
TABLES_CHECK_NAME |
protected javax.swing.JCheckBox |
tablesCheck |
protected static int |
VERTICAL_SPACE_SIZE |
static java.lang.String |
VIEWS_CHECK_NAME |
protected javax.swing.JCheckBox |
viewsCheck |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface oracle.ide.controls.GridBagConstants |
---|
ANCHOR_C, ANCHOR_E, ANCHOR_N, ANCHOR_NE, ANCHOR_NW, ANCHOR_S, ANCHOR_SE, ANCHOR_SW, ANCHOR_W, FILL_NONE, FILL_X, FILL_XY, FILL_Y |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SelectDatabaseObjectsPanel() Constructs a new instance. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected abstract java.lang.Object |
addSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems) |
protected void |
assignComponentNames() |
void |
changedUpdate(javax.swing.event.DocumentEvent e) |
void |
closeConnection() |
protected java.awt.datatransfer.Transferable[] |
convertSelectedAvailableItems(java.awt.datatransfer.Transferable[] selectedItems) Hook for subclasses to convert Transferable items selected in the From picker to the item type known to the To picker. |
protected java.util.ArrayList |
doQuerySchemas() |
protected java.util.ArrayList |
doQueryTables(java.lang.String filterName) Subclasses can override this method to perform their own custom queries, instead of relying on DatabaseMetaData behavior. |
protected void |
doSetConnection(java.lang.String connName) Invokes a thread to get the DatabaseMetaData object for this connection, then fires off separate threads to query the tables and schemas |
protected void |
filterQueriedTables(java.util.ArrayList queriedTables) Hook for subclasses to remove items from the queried tables list that have already been chosen. |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
protected boolean |
forceUppercaseSchema() Return true if schema names should be converted to uppercase before being stored in the schema.table list in the namespace. |
static java.lang.String |
getCurrConnName(Namespace namespace) |
protected boolean |
getIncludeSynonymsCheck() Returns the checked status of the include synonyms check box. |
protected boolean |
getIncludeTablesCheck() Returns the checked status of the include tables check box. |
protected boolean |
getIncludeViewsCheck() Returns the checked status of the include views check box. |
protected javax.swing.JComponent |
getListControl() |
protected int |
getShuttleMode() Allow subclasses to override the Shuttle's copy/move mode. |
protected javax.swing.JCheckBox |
getSnapshotsCheck() |
protected javax.swing.JCheckBox |
getSynonymsCheck() |
protected javax.swing.JCheckBox |
getTablesCheck() |
protected int |
getVerticalSpaceSize() |
protected javax.swing.JCheckBox |
getViewsCheck() |
void |
insertUpdate(javax.swing.event.DocumentEvent e) |
protected void |
loadSettings() Load the default IDE settings for this panel. |
protected void |
loadSettings(java.lang.String key) Load the IDE settings from a (dialog/wizard)-specific key. |
void |
onEntry(TraversableContext tc) Does nothing by default. |
void |
onExit(TraversableContext tc) Upon leaving this panel, save the _metaData object and the chosen tables list out to the traversable context. |
protected void |
querySchemas() |
protected void |
queryTables() |
protected abstract void |
removeSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems) |
void |
removeUpdate(javax.swing.event.DocumentEvent e) |
protected abstract void |
savePendingEntityNameChanges() |
protected void |
saveSettings() Save the default IDE settings for this panel. |
protected void |
saveSettings(java.lang.String key) Save the IDE settings from a (dialog/wizard)-specific key. |
protected void |
setCanSelectSynonyms(boolean boo) Sets whether or not to include the check box for selecting synonyms. |
protected void |
setCanSelectViews(boolean boo) Sets whether or not to include the check box for selecting views. |
static void |
setCurrConnName(java.lang.String currConnName, Namespace namespace) |
protected void |
setIncludeEntityField(boolean include) |
protected void |
setIncludeSnapshotsCheck(boolean include) |
void |
shuttleItemsMoved(oracle.bali.ewt.shuttle.ShuttleEvent event) |
void |
shuttleItemsRemoved(oracle.bali.ewt.shuttle.ShuttleEvent event) |
void |
shuttleItemsReordered(oracle.bali.ewt.shuttle.ShuttleEvent event) |
void |
valueChanged(javax.swing.event.ListSelectionEvent e) Save pending entity name changes back to its state object, and respond to list selection changes by enabling/disabling the entity name field and assigning/clearing its data. |
Methods inherited from class oracle.ide.panels.DefaultTraversablePanel |
---|
gbc, gbc, getComponent, getDefaultTitle, getExitTransition, getHelpID, getText, setDefaultTitle, setHelpID |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, hide, 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, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JPanel dbObjPanel
protected final javax.swing.JTextField filterField
public static final java.lang.String FILTER_FIELD_NAME
protected final javax.swing.JCheckBox autoQueryCheck
public static final java.lang.String AUTO_QUERY_CHECK_NAME
protected final javax.swing.JComboBox schemaCombo
public static final java.lang.String SCHEMA_COMBO_NAME
protected final javax.swing.JButton queryButton
public static final java.lang.String QUERY_BUTTON_NAME
protected final javax.swing.JCheckBox tablesCheck
public static final java.lang.String TABLES_CHECK_NAME
protected final javax.swing.JCheckBox viewsCheck
public static final java.lang.String VIEWS_CHECK_NAME
protected final javax.swing.JCheckBox synonymsCheck
public static final java.lang.String SYNONYMS_CHECK_NAME
protected final javax.swing.JCheckBox snapshotsCheck
public static final java.lang.String SNAPSHOTS_CHECK_NAME
protected oracle.bali.ewt.shuttle.Shuttle _shuttle
protected oracle.bali.ewt.shuttle.ListPicker _availableTablesPicker
protected javax.swing.JPanel _dbObjQueryAlertPanel
protected final javax.swing.DefaultListModel availableTablesModel
protected final javax.swing.JList availableTablesList
public static final java.lang.String AVAILABLE_TABLES_LIST_NAME
protected final javax.swing.DefaultListModel chosenTablesModel
protected final javax.swing.JList chosenTablesList
public static final java.lang.String CHOSEN_TABLES_LIST_NAME
protected final javax.swing.JLabel entityNameLabel
protected final javax.swing.JTextField entityNameField
public static final java.lang.String ENTITY_FIELD_NAME
protected boolean _initialized
protected java.lang.String _connectionUrl
protected WizardCallbacks _wizardCallbacks
protected Namespace _namespace
protected SwingWorker _connWorker
protected SwingWorker _schemaWorker
protected SwingWorker _tableWorker
protected java.lang.String _currSchema
protected java.lang.String _currTableFilter
protected java.util.ArrayList _queriedTablesList
protected java.util.Set _chosenTablesSet
protected boolean _includeSnapshotsCheck
protected boolean _snapshotsIncluded
protected boolean _includeEntityField
protected boolean _entityFieldIncluded
protected boolean _canSelectViews
protected boolean _viewSelectIncluded
protected boolean _canSelectSynonyms
protected boolean _synonymSelectIncluded
protected static final java.awt.datatransfer.DataFlavor TABLE_FLAVOR
public static final java.lang.String DATABASE_METADATA
public static final java.lang.String CURR_CONN_NAME
public static final java.lang.String CHOSEN_TABLES
public static final java.lang.String SELECT_DB_OBJECTS_SETTINGS_KEY
public static final java.lang.String SETTINGS_AUTO_QUERY_KEY
public static final java.lang.String SETTINGS_QUERY_TABLES_KEY
public static final java.lang.String SETTINGS_QUERY_VIEWS_KEY
public static final java.lang.String SETTINGS_QUERY_SYNONYMS_KEY
public static final java.lang.String SETTINGS_QUERY_SNAPSHOTS_KEY
protected static final int VERTICAL_SPACE_SIZE
Constructor Detail |
---|
public SelectDatabaseObjectsPanel()
Method Detail |
---|
protected void assignComponentNames()
protected javax.swing.JComponent getListControl()
protected int getShuttleMode()
protected java.awt.datatransfer.Transferable[] convertSelectedAvailableItems(java.awt.datatransfer.Transferable[] selectedItems)
protected void filterQueriedTables(java.util.ArrayList queriedTables)
protected int getVerticalSpaceSize()
protected void setIncludeSnapshotsCheck(boolean include)
protected void setIncludeEntityField(boolean include)
protected boolean getIncludeTablesCheck()
protected boolean getIncludeViewsCheck()
protected boolean getIncludeSynonymsCheck()
protected void setCanSelectViews(boolean boo)
protected void setCanSelectSynonyms(boolean boo)
public void onEntry(TraversableContext tc)
DefaultTraversablePanel
onEntry
in interface Traversable
onEntry
in class DefaultTraversablePanel
tc
- The data wrapper where the Traversable
locates the data that it needs to populate the UI.Traversable.onEntry(TraversableContext)
public static java.lang.String getCurrConnName(Namespace namespace)
public static void setCurrConnName(java.lang.String currConnName, Namespace namespace)
protected void loadSettings()
protected void loadSettings(java.lang.String key)
key
- A key for looking up the panel options in the IDE settings.public void onExit(TraversableContext tc) throws TraversalException
onExit
in interface Traversable
onExit
in class DefaultTraversablePanel
tc
- The data object where changes made in the UI should be copied so that the changes can be accessed by other Traversable
s.TraversalException
- if the user has entered either incomplete, invalid, or inconsistent data. This exception prevents the property dialog or wizard from continuing and forces the user to stay on the current Traversable
until the data entered is valid or the user cancels. The exception class itself is capable of carrying an error message that will be shown to the user. Refer to its javadoc for details.Traversable.onExit(TraversableContext)
public void closeConnection()
protected void saveSettings()
protected void saveSettings(java.lang.String key)
key
- A key for looking up the panel options in the IDE settings.protected abstract void savePendingEntityNameChanges() throws TraversalException
TraversalException
protected abstract java.lang.Object addSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems)
protected abstract void removeSelectedObjects(java.awt.datatransfer.Transferable[] selectedItems)
protected void doSetConnection(java.lang.String connName)
protected boolean forceUppercaseSchema()
protected void queryTables()
protected java.util.ArrayList doQueryTables(java.lang.String filterName)
protected void querySchemas()
protected java.util.ArrayList doQuerySchemas()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
in interface javax.swing.event.DocumentListener
public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
in interface javax.swing.event.DocumentListener
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void shuttleItemsMoved(oracle.bali.ewt.shuttle.ShuttleEvent event)
shuttleItemsMoved
in interface oracle.bali.ewt.shuttle.ShuttleListener
public void shuttleItemsRemoved(oracle.bali.ewt.shuttle.ShuttleEvent event)
shuttleItemsRemoved
in interface oracle.bali.ewt.shuttle.ShuttleListener
public void shuttleItemsReordered(oracle.bali.ewt.shuttle.ShuttleEvent event)
shuttleItemsReordered
in interface oracle.bali.ewt.shuttle.ShuttleListener
protected javax.swing.JCheckBox getSynonymsCheck()
protected javax.swing.JCheckBox getTablesCheck()
protected javax.swing.JCheckBox getViewsCheck()
protected javax.swing.JCheckBox getSnapshotsCheck()
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |