|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
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.ide.db.panels.SkippingTraversable oracle.ide.db.panels.SelectDBObjectsPanel
public class SelectDBObjectsPanel
Base panel for picking DBObjects from a DBObjectProvider. This panel is designed to be used as part of a Traversable in a wizard to select objects for some process (e.g. import from a database to some target in JDev).
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 WizardCallbacks |
m_callBacks
|
protected SchemaObjectTargetPicker |
m_chosen
|
protected oracle.bali.ewt.shuttle.Shuttle |
m_shuttle
|
static java.lang.String |
SELECTED_OBJECTS
|
static java.lang.String |
SETTINGS_KEY
|
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 | |
---|---|
SelectDBObjectsPanel()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
protected boolean |
canAlwaysNext()
When used in a wizard this sets whether the wizard can always next regardless of the state of this step. |
protected boolean |
canFinish()
When used in a wizard this sets whether the wizard can finish after this step. |
protected boolean |
canRenameObjects()
Deprecated. - rename is no longer supported. getNameProvider() returns an intention to include an extra name field that can be used for entity naming. |
void |
changedUpdate(javax.swing.event.DocumentEvent e)
|
protected void |
checkWizardButtons()
Checks that the wizard's buttons are appropriately enabled. |
protected void |
commit(TraversableContext dataContext)
Default implementation of the commit calls getSelectedObjects() and
places what is returned into the context using the SELECTED_OBJECTS
key. |
protected void |
fireQuery()
Fires the query on the DBObjectPicker (LHS of shuttle) given the appropriate selections for filter, schema and object types. |
protected java.lang.String[] |
getAvailableTypes()
Returns the types available for querying in the from picker - override in subclasses as appropriate. |
protected DBObjectSourcePicker |
getFromPicker()
Returns the picker for the left (from) side of the shuttle. |
protected NameController |
getNameController()
Returns the name provider that will produce support for including another name in addition to the object's name itself. |
protected java.lang.String |
getPanelName()
Returns the name that will be prepended to all component names for ui testability. |
protected PropertyStorage |
getPropertyStorage()
Returns the PropertyStorage for this panel to save its query setting in. |
protected DBObjectProvider |
getProvider()
Returns the provider we're selecting objects from. |
protected DBObjectProvider |
getProvider(TraversableContext dataContext)
Get the DBObjectProvider. |
protected java.lang.String |
getProviderKey()
Returns the key for the provider to use in the data context. |
protected java.lang.Object |
getSelectedObjects()
Returns the selection of objects chosen. |
protected java.lang.String |
getSettingsKey()
Returns the key for this panel's settings. |
protected oracle.bali.ewt.shuttle.ItemPicker |
getToPicker()
Returns the picker for the right (to) side of the shuttle. |
protected java.lang.String |
getTraversableName()
Override this to provide a name for sub-classes which may be skipped. |
protected void |
init(boolean providerChanged,
TraversableContext dataContext)
Initialises the panel. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
protected void |
layoutComponents()
|
protected void |
loadSettings()
Load the IDE settings from a (dialog/wizard)-specific key. |
void |
onEntry(TraversableContext dataContext)
Called on entry to the panel in the wizard. |
void |
onExit(TraversableContext dataContext)
Called on panel exit. |
void |
removeUpdate(javax.swing.event.DocumentEvent e)
|
protected void |
saveSettings()
Save the IDE settings from a (dialog/wizard)-specific key. |
protected void |
setDefaultSettings()
If there are no settings saved in the J2EE preferences set with the key returned by getSettingsKey() then this method is called to default
any appropriate controls. |
protected void |
setIncludePublicSchema(boolean inc)
|
protected void |
setupQuery(DBObjectSourcePicker from,
Schema schema,
java.lang.String filter,
java.lang.String[] types)
By default this sets the schema, types and filter on the given from picker. |
void |
shuttleItemsMoved(oracle.bali.ewt.shuttle.ShuttleEvent p0)
|
void |
shuttleItemsRemoved(oracle.bali.ewt.shuttle.ShuttleEvent p0)
|
void |
shuttleItemsReordered(oracle.bali.ewt.shuttle.ShuttleEvent p0)
|
void |
stateChanged(java.lang.Object source)
Occurs when the checked state of a list item changes. |
Methods inherited from class oracle.ide.db.panels.SkippingTraversable |
---|
isSkipping |
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 |
---|
public static final java.lang.String SELECTED_OBJECTS
public static final java.lang.String SETTINGS_KEY
protected WizardCallbacks m_callBacks
protected SchemaObjectTargetPicker m_chosen
protected oracle.bali.ewt.shuttle.Shuttle m_shuttle
Constructor Detail |
---|
public SelectDBObjectsPanel()
Method Detail |
---|
protected java.lang.String getPanelName()
protected void layoutComponents()
protected final DBObjectProvider getProvider()
protected NameController getNameController()
protected DBObjectSourcePicker getFromPicker()
protected oracle.bali.ewt.shuttle.ItemPicker getToPicker()
protected boolean canFinish()
protected boolean canAlwaysNext()
@Deprecated protected boolean canRenameObjects()
protected java.lang.String[] getAvailableTypes()
new String[]{Table.TYPE, View.TYPE};
protected java.lang.String getProviderKey()
public final void onEntry(TraversableContext dataContext)
init(boolean,TraversableContext)
for custom behaviour.
onEntry
in interface Traversable
onEntry
in class SkippingTraversable
dataContext
- The data wrapper where the
Traversable
locates the data that it needs to
populate the UI.Traversable.onEntry(TraversableContext)
public final void onExit(TraversableContext dataContext) throws TraversalException
commit(TraversableContext)
for custom behaviour.
onExit
in interface Traversable
onExit
in class DefaultTraversablePanel
dataContext
- 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)
protected DBObjectProvider getProvider(TraversableContext dataContext)
protected void commit(TraversableContext dataContext) throws TraversalException
getSelectedObjects()
and
places what is returned into the context using the SELECTED_OBJECTS
key.
TraversalException
protected java.lang.Object getSelectedObjects()
protected void setIncludePublicSchema(boolean inc)
protected void init(boolean providerChanged, TraversableContext dataContext)
onEntry(TraversableContext)
to the parent
Traversable. The default implementation deals with auto-querying, spotting
that the provider has changed, loading the settings and checking the wizard
buttons if working in a wizard). It is recommended that subclasses still
call this behaviour.
providerChanged
- whether on entering the state has changed the
provider.dataContext
- the traversable context containing all state dataprotected void fireQuery()
protected void setupQuery(DBObjectSourcePicker from, Schema schema, java.lang.String filter, java.lang.String[] types)
protected java.lang.String getSettingsKey()
getPropertyStorage()
protected PropertyStorage getPropertyStorage()
getSettingsKey()
protected void loadSettings()
getSettingsKey()
method.
If no settings have yet been associated with this key, the
default settings are loaded instead.
protected void setDefaultSettings()
getSettingsKey()
then this method is called to default
any appropriate controls. By default this sets autoQuery to be FALSE if the
provider is a Database, and all types will be selected with no filter.
Subclasses can override.
protected void saveSettings()
getSettingsKey()
method.
protected void checkWizardButtons()
canFinish()
and canAlwaysNext()
.
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
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 shuttleItemsMoved(oracle.bali.ewt.shuttle.ShuttleEvent p0)
shuttleItemsMoved
in interface oracle.bali.ewt.shuttle.ShuttleListener
public void shuttleItemsRemoved(oracle.bali.ewt.shuttle.ShuttleEvent p0)
shuttleItemsRemoved
in interface oracle.bali.ewt.shuttle.ShuttleListener
public void shuttleItemsReordered(oracle.bali.ewt.shuttle.ShuttleEvent p0)
shuttleItemsReordered
in interface oracle.bali.ewt.shuttle.ShuttleListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void stateChanged(java.lang.Object source)
CheckBoxListItemStateListener
stateChanged
in interface CheckBoxListItemStateListener
source
- The item whose state has changed.protected java.lang.String getTraversableName()
getTraversableName
in class SkippingTraversable
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |