|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
samples.javaclient.analyzer.Analyzer
The main class for the Ad Hoq Analysis Tool sample application. This class constructs the user interface for the application. The main user interface includes:
Worksheet
objectsSidebar
, which contains three Explorers:
CatalogExplorer
, which presents worksheetsFavoritesExplorer
, which presents saved selectionsDimensionExplorer
, which presents members of different
dimensionsAnalyzerConnection
for the
application, and it uses the connection for access to managers that
the application needs, such as the MetadataManager and the QueryManager.
Crosstabs and graphs that users create in Analyzer are contained in Worksheet objects.
This class listens for clicks in the menus and toolbars, and it calls
methods that respond to those clicks.
For example, choosing the New item on the File menu brings up a
NewPresentationWizard
.
This class instantiates that wizard object and runs it.
This class has support for drag-and-drop in its implementation of the DropTargetListener interface. In its implementation of the InternalFrameListener interface, this class supports a multiple-document interface.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
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 |
ATTEMPT_CONNECT
Status: Attemping to connect. |
private javax.swing.JButton |
btnCB
Calculation button for toolbar. |
private javax.swing.JToggleButton |
btnCrosstab
Crosstab button for toolbar. |
private javax.swing.JButton |
btnEdit
Edit button for toolbar. |
private javax.swing.JToggleButton |
btnGraph
Graph button for toolbar. |
private javax.swing.JButton |
btnNew
New button for toolbar. |
private javax.swing.JButton |
btnOpen
Open button for toolbar. |
private javax.swing.JButton |
btnPrint
Print button for toolbar. |
private javax.swing.JButton |
btnQB
QueryBuilder button for toolbar. |
private javax.swing.JButton |
btnSave
Save button for toolbar. |
private static java.lang.String |
CONNECTED
Status: Connected. |
private static java.lang.String |
DIMENSION_EXPLORER
The title of the Dimension Explorer: "Members". |
private static java.lang.String |
FAVORITES_EXPLORER
The title of the Favorites Explorer: "Saved Selections". |
private static java.lang.String |
FILE
File menu: "&File". |
private static java.lang.String |
FILE_CONNECT
Connect item on the File menu: "&Connect...". |
private static java.lang.String |
FILE_DISCONNECT
Disconnect item on the File menu: "&Disconnect...". |
private static java.lang.String |
FILE_EXIT
Exit item on the File menu: "E&xit...". |
private static java.lang.String |
FILE_EXPORT
Export item on the File menu: "&Export...". |
private static java.lang.String |
FILE_NEW
New item on the File menu: "&New...". |
private static java.lang.String |
FILE_OPEN
Open item on the File menu: "&Open...". |
private static java.lang.String |
FILE_PRINT
Print item on the File menu: "&Print...". |
private static java.lang.String |
FILE_SAVE
Save item on the File menu: "&Save". |
private static java.lang.String |
FILE_SAVEAS
Save As item on the File menu: "Save &As...". |
private static java.lang.String |
HELP
Help menu: "&Help". |
private static java.lang.String |
HELP_ABOUT
About item on the Help menu: "&About". |
private javax.swing.JMenuItem |
m_aboutMenu
About item on the Help menu. |
private Analyzer |
m_analyzer
Application class. |
private boolean |
m_autoconnect
Do we automatically connect to the database? |
private java.awt.event.MouseAdapter |
m_catalogListener
Listener for mouse clicks in the Catalog Explorer. |
private AnalyzerConnection |
m_connection
AnalyzerConnection, which encapsulates information about connections. |
private javax.swing.JDesktopPane |
m_desktop
Desktop. |
private DimensionExplorer |
m_dimensionExplorer
The dimension explorer, where users can select dimension members and drag them to a view. |
private FavoritesExplorer |
m_favoritesExplorer
The favorites explorer, where users can select saved selections and drag them to a view. |
private javax.swing.JMenuBar |
m_menubar
The menu bar. |
private javax.swing.JMenuItem |
m_mnuCB
Insert Calculation item on the Tools menu. |
private javax.swing.JMenuItem |
m_mnuConnect
Connect item in File menu. |
private javax.swing.JRadioButtonMenuItem |
m_mnuCrosstab
Crosstab item on the View menu. |
private javax.swing.JMenuItem |
m_mnuDisconnect
Disconnect item in File menu. |
private javax.swing.JMenuItem |
m_mnuExit
Exit item in File menu. |
private javax.swing.JMenuItem |
m_mnuExport
Export item in File menu. |
private javax.swing.JMenu |
m_mnuFile
File menu. |
private javax.swing.JMenuItem |
m_mnuFmtGraph
Format Graph item on the Tools menu. |
private javax.swing.JRadioButtonMenuItem |
m_mnuGraph
Graph item on the View menu. |
private javax.swing.JMenuItem |
m_mnuGraphType
Graph Type item on the Tools menu. |
private javax.swing.JMenu |
m_mnuHelp
Help menu. |
private javax.swing.JMenuItem |
m_mnuHorizontal
Tile Horizontal item on the Window menu. |
private javax.swing.JMenuItem |
m_mnuNew
New item in File menu. |
private javax.swing.JMenuItem |
m_mnuOpen
Open item in File menu. |
private javax.swing.JMenuItem |
m_mnuPrint
Print item in File menu. |
private javax.swing.JMenuItem |
m_mnuQB
Edit Query item on the Tools menu. |
private javax.swing.JMenuItem |
m_mnuSave
Save item in File menu. |
private javax.swing.JMenuItem |
m_mnuSaveAs
Save As item in File menu. |
private javax.swing.JMenu |
m_mnuTools
Tools menu. |
private javax.swing.JMenuItem |
m_mnuVertical
Tile Vertical item on the Window menu. |
private javax.swing.JMenu |
m_mnuView
View menu. |
private javax.swing.JMenu |
m_mnuWindow
Window menu. |
private Sidebar |
m_sidebar
The sidebar. |
private javax.swing.JSplitPane |
m_splitpane
Splitter that contains the sidebar and the desktop. |
private oracle.bali.ewt.statusBar.StatusBar |
m_statusBar
The status bar. |
private javax.swing.JLabel |
m_statusText
Text for the status bar. |
private oracle.dss.graph.gui.GraphToolBar |
m_toolBar
Toolbar. |
private ToolbarFormatListener |
m_toolbarFormatListener
Listener for changes made to a view through the toolbar. |
private AnalyzerUtilities |
m_util
Analyzer utilities, which displays dialogs, runs the QueryBuilder and the CalcBuilder, and handles errors. |
private java.awt.event.MouseAdapter |
m_viewMouseListener
Listener for mouse clicks in views. |
private Worksheet |
m_worksheet
Active worksheet. |
private CatalogExplorer |
m_worksheetExplorer
The worksheet explorer, where users can select the active worksheet. |
private static java.lang.String |
NOT_CONNECTED
Status: Not connected. |
private static java.lang.String |
TILE_HORIZONTAL
Tile Horizontal item on the Window menu: "Tile &Horizontal". |
private static java.lang.String |
TILE_VERTICAL
Tile Vertical item on the Window menu: "Tile &Vertical". |
private static java.lang.String |
TITLE
Application title: "BI Beans Sample - Ad Hoc Analysis Tool". |
private static java.lang.String |
TOOLS
Tools menu: "&Tools". |
private static java.lang.String |
TOOLS_CB
Insert Calculation item on the Tools menu: "Insert &Calculation...". |
private static java.lang.String |
TOOLS_FORMATGRAPH
Format Graph item on the Tools menu: "&Format Graph...". |
private static java.lang.String |
TOOLS_GRAPHTYPE
Graph Type item on the Tools menu: "&Graph Type...". |
private static java.lang.String |
TOOLS_QB
Edit Query item on the Tools menu: "Edit &Query...". |
private static java.lang.String |
UNTITLED
The title of a new worksheet: "Untitled". |
private static java.lang.String |
VERSION
Version of this sample application. |
private static java.lang.String |
VIEW
View menu: "&View". |
static java.lang.String |
VIEW_CROSSTAB
View type: Crosstab. |
static java.lang.String |
VIEW_GRAPH
View type: Graph. |
private static java.lang.String |
WINDOW
Window menu: "&Window". |
private static java.lang.String |
WORKSHEET_EXPLORER
The title of the Worksheet Explorer: "Worksheets". |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.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 javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Analyzer(java.lang.String title,
java.lang.String autoConnect)
Constructor for Analyzer. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles all of the application's menu and custom toolbar events. |
void |
addWorksheet(java.lang.String name,
oracle.dss.dataView.Dataview dv,
boolean isDirty,
int x,
int y,
int width,
int height)
Adds a worksheet to the desktop. |
void |
disconnectCleanUp()
Updates the user interface after the user disconnects. |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Null implementation for DropTargetListener. |
void |
dragExit(java.awt.dnd.DropTargetEvent dte)
Null implementation for DropTargetListener. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde)
Null implementation for DropTargetListener. |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde)
Examines the drag operation and changes the cursor. |
void |
drop1(java.awt.dnd.DropTargetDropEvent dtde)
Examines the drag operation and changes the cursor. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
Null implementation for DropTargetListener. |
void |
enableMenus()
Enables menus and toolbar buttons, based on the current state of the application. |
private void |
exit()
Cleans up and exits. |
Worksheet |
getActiveWorksheet()
Returns the Worksheet object that is currently in focus. |
AnalyzerConnection |
getConnection()
Returns the Analyzer connection object for the current connection. |
javax.swing.JDesktopPane |
getDesktop()
Retrieves the Analyzer desktop. |
java.lang.String |
getDragSourceData(java.awt.dnd.DropTargetDropEvent dtde,
java.lang.String typeOrObject)
Drag/drop support for the application. |
Sidebar |
getSidebar()
Retrieves the sidebar for this Analyzer. |
protected oracle.bali.ewt.statusBar.StatusBar |
getStatusBar()
Retrieves the status bar used by this Analyzer. |
oracle.dss.graph.gui.GraphToolBar |
getToolBar()
Retrieves the Analyzer toolbar. |
java.lang.String |
getVersion()
Returns the version number of this application. |
void |
initializeUI()
Initializes the Explorers and the menu. |
void |
internalFrameActivated(javax.swing.event.InternalFrameEvent e)
Sets the active worksheet for this Analyzer. |
void |
internalFrameClosed(javax.swing.event.InternalFrameEvent e)
Cleans up when a worksheet has been closed. |
void |
internalFrameClosing(javax.swing.event.InternalFrameEvent e)
Offers the user a chance to save a changed worksheet. |
void |
internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
Null implementation for InternalFrameListener. |
void |
internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
Null implementation for InternalFrameListener. |
void |
internalFrameIconified(javax.swing.event.InternalFrameEvent e)
Null implementation for InternalFrameListener. |
void |
internalFrameOpened(javax.swing.event.InternalFrameEvent e)
Null implementation for InternalFrameListener. |
protected void |
jbInit()
Initializes the user interface. |
static void |
main(java.lang.String[] args)
Main method for Analyzer. |
private void |
newPresentation()
Runs the New Presentation wizard and creates a worksheet for the presentation. |
void |
removeAllWorksheets()
Removes all worksheets from the desktop. |
void |
removeWorksheet(Worksheet worksheet)
Removes a worksheet from the desktop. |
private void |
save()
Saves the active presentation. |
void |
setActiveWorksheet(Worksheet worksheet)
Sets a worksheet as the active worksheet. |
private void |
setDataviewType(java.lang.String viewType)
Sets the view type for the active worksheet to a Graph or a Crosstab. |
void |
setStatusBarMessage(java.lang.String message)
Sets the message that the status bar displays. |
void |
setVisible(boolean visible)
Overrides the setVisible method from JComponent to allow the centering of the Analyzer before displaying it. |
private void |
showAboutDialog()
Displays the About dialog. |
private void |
showConnectDialog()
Displays a connection dialog box that asks the user for connection information. |
private void |
showDisconnectDialog()
Displays a confirmation dialog asking if the user wants to disconnect. |
private void |
tileWorksheets(java.lang.String tile)
Tiles the windows horizontally or vertically in the desktop. |
void |
updateListOfWorksheets()
Updates the list of open windows in the Window menu. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private static final java.lang.String VERSION
private static final java.lang.String TITLE
main(java.lang.String[])
,
Constant Field Valuesprivate static final java.lang.String UNTITLED
newPresentation()
,
Constant Field Valuesprivate static final java.lang.String WORKSHEET_EXPLORER
jbInit()
,
Constant Field Valuesprivate static final java.lang.String FAVORITES_EXPLORER
jbInit()
,
Constant Field Valuesprivate static final java.lang.String DIMENSION_EXPLORER
jbInit()
,
Constant Field Valuesprivate static final java.lang.String FILE
jbInit()
,
Constant Field Valuesprivate static final java.lang.String TOOLS
jbInit()
,
Constant Field Valuesprivate static final java.lang.String HELP
jbInit()
,
Constant Field Valuesprivate static final java.lang.String HELP_ABOUT
jbInit()
,
Constant Field Valuesprivate static final java.lang.String FILE_NEW
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_OPEN
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_SAVE
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_SAVEAS
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_PRINT
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_EXPORT
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_CONNECT
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_DISCONNECT
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String FILE_EXIT
jbInit()
,
exit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String WINDOW
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String TILE_HORIZONTAL
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String TILE_VERTICAL
actionPerformed(java.awt.event.ActionEvent)
,
jbInit()
,
Constant Field Valuesprivate static final java.lang.String TOOLS_QB
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String TOOLS_CB
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String TOOLS_GRAPHTYPE
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String TOOLS_FORMATGRAPH
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
Constant Field Valuesprivate static final java.lang.String VIEW
jbInit()
,
Constant Field Valuespublic static final java.lang.String VIEW_GRAPH
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
setDataviewType(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String VIEW_CROSSTAB
jbInit()
,
actionPerformed(java.awt.event.ActionEvent)
,
setDataviewType(java.lang.String)
,
Constant Field Valuesprivate static final java.lang.String CONNECTED
enableMenus()
,
Constant Field Valuesprivate static final java.lang.String NOT_CONNECTED
jbInit()
,
enableMenus()
,
Constant Field Valuesprivate static final java.lang.String ATTEMPT_CONNECT
jbInit()
,
Constant Field Valuesprivate boolean m_autoconnect
private Worksheet m_worksheet
private javax.swing.JDesktopPane m_desktop
jbInit()
private oracle.dss.graph.gui.GraphToolBar m_toolBar
jbInit()
,
enableMenus()
private javax.swing.JLabel m_statusText
private oracle.bali.ewt.statusBar.StatusBar m_statusBar
private Sidebar m_sidebar
jbInit()
,
CatalogExplorer
,
DimensionExplorer
,
FavoritesExplorer
private CatalogExplorer m_worksheetExplorer
jbInit()
private FavoritesExplorer m_favoritesExplorer
jbInit()
private DimensionExplorer m_dimensionExplorer
jbInit()
private javax.swing.JSplitPane m_splitpane
jbInit()
private AnalyzerConnection m_connection
Analyzer(java.lang.String, java.lang.String)
,
jbInit()
,
initializeUI()
,
showConnectDialog()
,
showDisconnectDialog()
,
newPresentation()
,
enableMenus()
,
getConnection()
,
exit()
private AnalyzerUtilities m_util
private javax.swing.JMenuBar m_menubar
private javax.swing.JMenu m_mnuFile
jbInit()
private javax.swing.JMenuItem m_mnuNew
jbInit()
private javax.swing.JMenuItem m_mnuOpen
jbInit()
private javax.swing.JMenuItem m_mnuSave
jbInit()
private javax.swing.JMenuItem m_mnuSaveAs
jbInit()
private javax.swing.JMenuItem m_mnuPrint
jbInit()
private javax.swing.JMenuItem m_mnuExport
jbInit()
private javax.swing.JMenuItem m_mnuConnect
jbInit()
private javax.swing.JMenuItem m_mnuDisconnect
jbInit()
private javax.swing.JMenuItem m_mnuExit
jbInit()
private javax.swing.JMenu m_mnuTools
jbInit()
private javax.swing.JMenuItem m_mnuQB
jbInit()
private javax.swing.JMenuItem m_mnuCB
jbInit()
private javax.swing.JMenuItem m_mnuGraphType
jbInit()
private javax.swing.JMenuItem m_mnuFmtGraph
jbInit()
private javax.swing.JMenu m_mnuWindow
jbInit()
private javax.swing.JMenuItem m_mnuHorizontal
jbInit()
private javax.swing.JMenuItem m_mnuVertical
jbInit()
private javax.swing.JMenu m_mnuView
jbInit()
private javax.swing.JRadioButtonMenuItem m_mnuGraph
jbInit()
private javax.swing.JRadioButtonMenuItem m_mnuCrosstab
jbInit()
private javax.swing.JMenu m_mnuHelp
jbInit()
private javax.swing.JMenuItem m_aboutMenu
jbInit()
private javax.swing.JButton btnNew
jbInit()
private javax.swing.JButton btnOpen
jbInit()
private javax.swing.JButton btnEdit
jbInit()
private javax.swing.JButton btnCB
jbInit()
private javax.swing.JButton btnQB
jbInit()
private javax.swing.JButton btnPrint
jbInit()
private javax.swing.JButton btnSave
jbInit()
private javax.swing.JToggleButton btnGraph
jbInit()
private javax.swing.JToggleButton btnCrosstab
jbInit()
private ToolbarFormatListener m_toolbarFormatListener
private java.awt.event.MouseAdapter m_catalogListener
private java.awt.event.MouseAdapter m_viewMouseListener
private Analyzer m_analyzer
Constructor Detail |
public Analyzer(java.lang.String title, java.lang.String autoConnect)
title
- The title of the JFrame.autoConnect
- Should the application automatically connect to the database?
Pass "autoconnect" to have the application use
parameters in analyzerTemplate.xml.
By default, the application prompts the user for
connection details.Method Detail |
public static void main(java.lang.String[] args)
Analyzer(java.lang.String, java.lang.String)
public void setVisible(boolean visible)
visible
- true
to make Analyzer visible.
false
to hide it.protected oracle.bali.ewt.statusBar.StatusBar getStatusBar()
public Sidebar getSidebar()
public oracle.dss.graph.gui.GraphToolBar getToolBar()
jbInit()
public javax.swing.JDesktopPane getDesktop()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- Information about the action that the user performed.protected void jbInit()
private void setDataviewType(java.lang.String viewType)
viewType
- A contant that identifies the view type. Valid constants
are VIEW_GRAPH and VIEW_CROSSTAB.VIEW_GRAPH
,
VIEW_CROSSTAB
private void showAboutDialog()
AnalyzerAboutDialog
private void showConnectDialog()
initializeUI()
,
AnalyzerConnection.showConnectDialog(javax.swing.JFrame)
public void initializeUI()
enableMenus()
private void showDisconnectDialog()
AnalyzerConnection.showDisconnectDialog(javax.swing.JFrame)
public void disconnectCleanUp()
removeAllWorksheets()
,
FavoritesExplorer.setQuery(oracle.dss.dataSource.client.QueryClient)
,
CatalogExplorer.setMetadataManager(oracle.dss.metadataManager.client.MetadataManager)
private void newPresentation()
NewPresentationWizard
,
addWorksheet(java.lang.String, oracle.dss.dataView.Dataview, boolean, int, int, int, int)
private void exit()
removeAllWorksheets()
public void enableMenus()
public void updateListOfWorksheets()
public void addWorksheet(java.lang.String name, oracle.dss.dataView.Dataview dv, boolean isDirty, int x, int y, int width, int height)
name
- Fully qualified name of the data presentation. This becomes
the title of the worksheet.dv
- The Dataview
object that will be added to the worksheet.isDirty
- true
if the Dataview
is dirty
(needs to be saved),
false
if no changes have been made since the last
save.
A new Dataview
from the Presentation wizard is dirty.x
- The horizontal position for the view in the desktop.y
- The vertical position for the view in the desktop.width
- The width of the view.height
- The height of the view.newPresentation()
,
Worksheet
public void removeWorksheet(Worksheet worksheet)
public void removeAllWorksheets()
private void save()
AnalyzerUtilities.showSaveAsDialog()
,
AnalyzerUtilities.saveView(java.lang.String, oracle.dss.dataView.Dataview)
public Worksheet getActiveWorksheet()
public void setActiveWorksheet(Worksheet worksheet)
worksheet
- The worksheet object to make active.enableMenus()
,
FavoritesExplorer
,
DimensionExplorer
public void setStatusBarMessage(java.lang.String message)
message
- The message to display in the status bar.public java.lang.String getVersion()
public AnalyzerConnection getConnection()
private void tileWorksheets(java.lang.String tile)
tile
- The orientation for tiling. Valid values are
Analyzer.TILE_HORIZONTAL or Analyzer.TILE_VERTICAL.TILE_HORIZONTAL
,
TILE_VERTICAL
public java.lang.String getDragSourceData(java.awt.dnd.DropTargetDropEvent dtde, java.lang.String typeOrObject)
typeOrObject
- The type of information to return.
"TYPE" retrieves the type of Explorer the object is
being dragged from.
"OBJECT" retrieves the the actual object that is being
dragged and dropped.
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit
in interface java.awt.dnd.DropTargetListener
public void drop1(java.awt.dnd.DropTargetDropEvent dtde)
Favorites and Dimension Members can be dropped on a dataview. Worksheets can be dropped on the desktop.
dtde
- Information about the drag-drop operation.public void drop(java.awt.dnd.DropTargetDropEvent dtde)
Favorites and Dimension Members can be dropped on a dataview. Worksheets can be dropped on the desktop.
drop
in interface java.awt.dnd.DropTargetListener
dtde
- Information about the drag-drop operation.public void internalFrameActivated(javax.swing.event.InternalFrameEvent e)
internalFrameActivated
in interface javax.swing.event.InternalFrameListener
e
- The InternalFrameEvent that identifies the activated internal
frame.setActiveWorksheet(samples.javaclient.analyzer.Worksheet)
public void internalFrameClosed(javax.swing.event.InternalFrameEvent e)
internalFrameClosed
in interface javax.swing.event.InternalFrameListener
e
- The InternalFrameEvent that identifies the worksheet to remove.removeWorksheet(samples.javaclient.analyzer.Worksheet)
public void internalFrameOpened(javax.swing.event.InternalFrameEvent e)
internalFrameOpened
in interface javax.swing.event.InternalFrameListener
public void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
internalFrameClosing
in interface javax.swing.event.InternalFrameListener
e
- The InternalFrameEvent that identifies the worksheet that is
being closed.save()
,
Worksheet.isDirty()
public void internalFrameIconified(javax.swing.event.InternalFrameEvent e)
internalFrameIconified
in interface javax.swing.event.InternalFrameListener
public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent e)
internalFrameDeiconified
in interface javax.swing.event.InternalFrameListener
public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent e)
internalFrameDeactivated
in interface javax.swing.event.InternalFrameListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |