|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
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.db.controls.DBObjectChooser
public final class DBObjectChooser
A generic control for choosing DBObjects. The control extends a JPanel allowing it to be layed out with other controls before the DBObjectProvider is known, however the actual implementation of the UI is placed onto the JPanel when the DBObjectProvider is first set on the control.
DBObjectChooser uses a DBObjectChooserDelegate
to control what the UI is. There are a number of built in DBObjectChooserDelegates, but alternative implementations can also be registered. See registerCustomChooser(java.lang.Class extends oracle.javatools.db.DBObjectProvider>
, java.lang.Class extends oracle.ide.db.controls.DBObjectChooserDelegate>
)
.
The DBObjectChooser also supports child-parent relationships. A DBObjectChooser can be created with a specified parent DBObjectChooser. The synchronization between the two controls will then be built automatically.
Nested Class Summary | |
---|---|
static interface |
DBObjectChooser.ChangeListener |
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 |
---|
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DBObjectChooser(DBObjectChooser parent, java.lang.String... types) Create a DBObjectChooser to support of objects of the given types, parented by the given DBObjectChooser. |
|
DBObjectChooser(java.lang.String... types) Create a DBObjectChooser to support of objects of the given types |
Method Summary | |
---|---|
void |
addChangeListener(DBObjectChooser.ChangeListener l) Adds the given DBObjectChooser.ChangeListener |
void |
addIDToList(DBObjectID id) |
DBObject |
getDBObject() Convenience method to return the DBObject currently represented by the DBObjectChooser. |
DBObjectCriteria |
getDBObjectCriteria() |
DBObjectID |
getDBObjectID() Get the id of the DBObject currently represented by the DBObjectChooser |
DBObjectFilter |
getFilter() Return any additional DBObjectFilter applied to the chooser. |
java.lang.String |
getName() Override of the Component.getName method. |
DBObject |
getOrCreateDBObject() |
java.lang.String[] |
getTypes() Return the list of DBObject types the DBObjectChooser was constructed with |
boolean |
isEditable() Override of the Component.isEditable method. |
boolean |
isEnabled() Override of the Component.isEnabled method. |
static void |
registerCustomChooser(java.lang.Class<? extends DBObjectProvider> provClz, java.lang.Class<? extends DBObjectChooserDelegate> delegateClz) Registers a DBObjectChooserDelegate for the given DBObjectProvider (or any of its subclasses) to be used when a DBObjectChooser is requested. |
void |
removeChangeListener(DBObjectChooser.ChangeListener l) Removes the given DBObjectChooser.ChangeListener |
void |
setContextDBObjectID(DBObjectID id) Set the context of a child DBObjectChooser. |
void |
setDBObject(DBObject obj) Convenience method to set the DBObject currently represented by the DBObjectChooser. |
void |
setDBObjectID(DBObjectID id) Set the id of the DBObject currently represented by the DBObjectChooser |
void |
setEditable(boolean editable) Override of the Component.setEditable method. |
void |
setEnabled(boolean enabled) Override of the Component.setEnabled method. |
void |
setFilter(DBObjectFilter filter) Set any additional DBObjectFilter for the chooser. |
void |
setName(java.lang.String name) Override of the Component.setName method. |
void |
setNullText(java.lang.String nullText) Set the text to show in the DBObjectChooser if the value it represents is null . |
void |
setProvider(DBObjectProvider prov) Set the DBObjectProvider for the DBObjectChooser. |
void |
setShowIcon(boolean showIcon) Set whether a type icon should be shown in the DBObjectChooser (if the delegate supports it). |
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, 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, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, 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 |
Constructor Detail |
---|
public DBObjectChooser(java.lang.String... types)
types
- a list of DBObject typespublic DBObjectChooser(DBObjectChooser parent, java.lang.String... types)
parent
- Parent DBObjectChoosertypes
- a list of DBObject typesMethod Detail |
---|
public final void setShowIcon(boolean showIcon)
public final void setNullText(java.lang.String nullText)
null
.public final void setProvider(DBObjectProvider prov)
public final void setContextDBObjectID(DBObjectID id)
public final DBObjectID getDBObjectID()
public final void setDBObjectID(DBObjectID id)
public final DBObject getDBObject()
getDBObjectID()
.public final void setDBObject(DBObject obj)
setDBObjectID(oracle.javatools.db.DBObjectID)
.public DBObjectCriteria getDBObjectCriteria()
public final void setName(java.lang.String name)
setName
in class java.awt.Component
public final java.lang.String getName()
setName(String)
.getName
in class java.awt.Component
public final void setEnabled(boolean enabled)
setEnabled
in class javax.swing.JComponent
public final boolean isEnabled()
setEnabled(boolean)
.isEnabled
in class java.awt.Component
public final void setEditable(boolean editable)
public final boolean isEditable()
setEditable(boolean)
.public DBObject getOrCreateDBObject()
public final void addChangeListener(DBObjectChooser.ChangeListener l)
public final void removeChangeListener(DBObjectChooser.ChangeListener l)
public final java.lang.String[] getTypes()
public final void addIDToList(DBObjectID id)
public void setFilter(DBObjectFilter filter)
public DBObjectFilter getFilter()
public static final void registerCustomChooser(java.lang.Class<? extends DBObjectProvider> provClz, java.lang.Class<? extends DBObjectChooserDelegate> delegateClz)
DBObjectChooserDelegate
for the given DBObjectProvider (or any of its subclasses) to be used when a DBObjectChooser is requested.provClz
- The class of the DBObjectProviderdelegateClz
- The class of the DBObjectChooserDelegate implementation
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |