|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
samples.javaclient.analyzer.CatalogExplorer
The Worksheets tab in the Sidebar. This Explorer displays graphs and crosstabs that are in the BI Beans Catalog. Users can open a view by dragging it to the desktop or by double-clicking it.
This class uses a JTree to display objects in the BI Beans Catalog. To do this, it uses customized tree models for the JTree.
BITreeModel
,
BITreeMNode
,
CatalogTreeModel
,
CatalogTreeNode
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
private static java.lang.String |
DOCUMENT_DESCRIPTION
Instruction text. |
private javax.naming.directory.BasicAttributes |
m_basicAttributes
Attributes that specify the object type to look for to display in this Explorer. |
private java.lang.String |
m_description
Variable for instruction text. |
private java.awt.dnd.DragSource |
m_dragSource
DragSource object for drag-and-drop support. |
private java.lang.String |
m_explorerType
Type of this Explorer: "WORKSHEET" or "FAVORITES". |
private oracle.dss.bicontext.BIFilter |
m_filter
Filter that specifies the object types to display in this Explorer. |
private oracle.dss.metadataManager.common.MDRoot |
m_MDRoot
Root folder. |
private oracle.dss.metadataManager.client.MetadataManager |
m_metadataManager
The MetadataManager for this Explorer. |
private java.lang.String |
m_notAvailableText
Text to display when there is no connection. |
private javax.swing.JScrollPane |
m_scrollpane
Scroll pane to put the tree in. |
private javax.swing.JTree |
m_tree
Tree to display Catalog objects. |
private oracle.bali.ewt.text.MultiLineLabel |
notAvail
Label for m_notAvailableText. |
private static java.lang.String |
ROOT
Label for the root folder. |
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
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 | |
CatalogExplorer()
Constructor. |
Method Summary | |
void |
addListeners()
Registers any listeners that this Explorer needs. |
void |
dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
Null implementation for DragSourceListener. |
void |
dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
Null implementation for DragSourceListener. |
void |
dragExit(java.awt.dnd.DragSourceEvent dse)
Null implementation for DragSourceListener. |
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
Responds to dragging. |
void |
dragOver(java.awt.dnd.DragSourceDragEvent dsde)
Null implementation for DragSourceListener. |
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
Null implementation for DragSourceListener. |
javax.naming.directory.BasicAttributes |
getBasicAttributes()
Gets the attributes that specify the display objects. |
java.lang.String |
getDescription()
Gets the instruction text for this Explorer. |
java.awt.dnd.DragSource |
getDragSource()
Gets the drag source for this Explorer. |
java.lang.String |
getExplorerType()
Gets the type of Explorer this is. |
oracle.dss.bicontext.BIFilter |
getFilter()
Gets the filter that has been set on this Explorer. |
javax.swing.JTree |
getJTree()
Gets the JTree for this Explorer. |
oracle.dss.metadataManager.common.MDRoot |
getMDRoot()
Gets the root folder for this Explorer. |
oracle.dss.metadataManager.client.MetadataManager |
getMetadataManager()
Gets the MetadataManager for this Explorer. |
java.lang.String |
getNotAvailableText()
Gets the text that this Explorer displays when it is not available. |
private void |
jbInit()
Initializes the user interface for this Explorer. |
void |
populateTree()
Populates the tree of objects and folders. |
void |
refreshTree()
Updates the JTree in this Explorer when items have been added or removed. |
void |
setBasicAttributes(javax.naming.directory.BasicAttributes basicAttributes)
Attributes that specify the display objects. |
void |
setDescription(java.lang.String description)
Sets the instruction text for this Explorer. |
void |
setDragSource(java.awt.dnd.DragSource dragSource)
Sets the drag source for this Explorer. |
void |
setExplorerType(java.lang.String type)
Sets the type of Explorer this is. |
void |
setFilter(oracle.dss.bicontext.BIFilter filter)
Sets the search control filter for this Explorer. |
void |
setMDRoot(oracle.dss.metadataManager.common.MDRoot root)
Sets the root folder for this Explorer and populates the JTree with the contents of the specified folder. |
void |
setMDRoot(oracle.dss.metadataManager.common.MDRoot root,
boolean populateTree)
Sets the root folder and optionally populates the tree that displays the contents of the folder. |
void |
setMetadataManager(oracle.dss.metadataManager.client.MetadataManager mm)
Specifies the MetadataManager for this Explorer. |
void |
setNotAvailable()
Sets this Explorer as not available. |
void |
setNotAvailableText(java.lang.String text)
Specifies the text that this Explorer displays when it is not available. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
private java.lang.String m_notAvailableText
private static final java.lang.String DOCUMENT_DESCRIPTION
private static final java.lang.String ROOT
private oracle.bali.ewt.text.MultiLineLabel notAvail
private oracle.dss.metadataManager.common.MDRoot m_MDRoot
private oracle.dss.metadataManager.client.MetadataManager m_metadataManager
private javax.naming.directory.BasicAttributes m_basicAttributes
private javax.swing.JTree m_tree
private oracle.dss.bicontext.BIFilter m_filter
private java.lang.String m_description
private java.awt.dnd.DragSource m_dragSource
private javax.swing.JScrollPane m_scrollpane
private java.lang.String m_explorerType
Constructor Detail |
public CatalogExplorer()
Method Detail |
public void setExplorerType(java.lang.String type)
type
- The type of Explorer.public java.lang.String getExplorerType()
private void jbInit() throws java.lang.Exception
java.lang.Exception
public void setMDRoot(oracle.dss.metadataManager.common.MDRoot root)
root
- The root folder.public void setMDRoot(oracle.dss.metadataManager.common.MDRoot root, boolean populateTree)
root
- The root folder.populateTree
- true
to populate the tree,
false
to set the root without
populating the tree.public oracle.dss.metadataManager.common.MDRoot getMDRoot()
public void populateTree()
public javax.swing.JTree getJTree()
public void setFilter(oracle.dss.bicontext.BIFilter filter)
filter
- The filter that specifies the types of object that
this Explorer displays.public oracle.dss.bicontext.BIFilter getFilter()
public void setNotAvailableText(java.lang.String text)
text
- The text to display.public java.lang.String getNotAvailableText()
public void setNotAvailable()
public void refreshTree()
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public void setBasicAttributes(javax.naming.directory.BasicAttributes basicAttributes)
The FavoritesExplorer calls this method to specify that it only displays saved selections.
public javax.naming.directory.BasicAttributes getBasicAttributes()
public void addListeners()
public void setMetadataManager(oracle.dss.metadataManager.client.MetadataManager mm)
mm
- MetadataManager that the application uses.Analyzer.initializeUI()
public oracle.dss.metadataManager.client.MetadataManager getMetadataManager()
public java.awt.dnd.DragSource getDragSource()
public void setDragSource(java.awt.dnd.DragSource dragSource)
dragSource
- The drag source.public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
dragGestureRecognized
in interface java.awt.dnd.DragGestureListener
dge
- Information about the drag gesture.public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
dragEnter
in interface java.awt.dnd.DragSourceListener
public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
dragOver
in interface java.awt.dnd.DragSourceListener
public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
dropActionChanged
in interface java.awt.dnd.DragSourceListener
public void dragExit(java.awt.dnd.DragSourceEvent dse)
dragExit
in interface java.awt.dnd.DragSourceListener
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
dragDropEnd
in interface java.awt.dnd.DragSourceListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |