Class Viewer
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
quadbase.reportdesigner.ReportViewer.swing.CApplet
quadbase.reportdesigner.ReportViewer.swing.Viewer
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,RootPaneContainer
public class Viewer
extends quadbase.reportdesigner.ReportViewer.swing.CApplet
This class provides the mechanism for viewing a report object (one that implements Interface
IReport), in either an application or an applet
environment.
The most common use of this Viewer class is getting a Component Object from a IReport Object:
-
Component c = (new Viewer()).getComponent(report);
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JApplet
JApplet.AccessibleJAppletNested classes/interfaces inherited from class java.applet.Applet
Applet.AccessibleAppletNested classes/interfaces inherited from class java.awt.Panel
Panel.AccessibleAWTPanelNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class javax.swing.JApplet
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()For internal use onlygetComponent(IReport report) Returns a Component that displays the report.getComponent(IReport report, int scrollBarOption) Returns a Component that displays the report, with the specified scroll bar optionGets the ReportCanvas object associated with this viewervoidinit()For internal use onlystatic voidinternal use onlyvoidsetBackMenuItemVisible(boolean b) Sets the visibility of the Back Menu Item.voidsetCanvasBackgroundColor(Color color) Sets the Canvas Background color of the viewed application or applet.voidsetDynamicExport(boolean state, String serverName, int serverPort, String servletDirectory) Sets the attributes for a dynamic export (when using setExportServlet)voidsetExportServlet(String url) Sets the url to the ViewerExportServlet, which is used for exporting to a servlet that streams back content to the client via a browser urlvoidsetGoToMenuItemVisible(boolean b) Sets the visibility of the Go To Menu Item.voidsetMenuVisible(boolean b) Sets the visibility of the Menu.voidsetMouseListener(MouseListener listener) Allow the user to implement their own mouse listeners and trap all mouse eventsvoidsetMouseMotionListener(MouseMotionListener listener) Sets a MouseMotionListener to be used with the Viewer.voidsetMultiDrillDownVisible(boolean b) Sets the visibility of Multi Drill Down.voidsetOutputMenuItemVisible(String[] menuItem, boolean b) Sets the visibility of some particular menu item(s) on the Output Menu.voidsetOutputMenuVisible(boolean b) Sets the visibility of the Output Menu.voidsetPageMenuItemVisible(String[] menuItem, boolean b) Sets the visibility of some particular menuitem(s) on the page Menu.voidsetPageMenuVisible(boolean b) Sets the visibility of the Page Menu.voidsetRefreshMenuItemVisible(boolean b) Sets the visibility of the Refresh Menu Item.voidsetReportMain(quadbase.reportdesigner.util.IReportMain reportMain) internal use only.voidsetSectionMenuVisible(boolean b) Sets the visibility of the Section Menu.voidsetSectionoMenuItemVisible(String[] menuItem, boolean b) Sets the visibility of some particular menu item(s).voidsetSortMenuVisible(boolean b) Sets the visibility of the Sort Menu.voidsetToolBarMenuVisible(boolean b) sets the display status of toolbar menu item in popup menuvoidsetZoomMenuItemVisible(boolean b) Sets the visibility of the Zoom Menu Item.voidstart()For internal use onlyvoidstop()For internal use onlyMethods inherited from class quadbase.reportdesigner.ReportViewer.swing.CApplet
add, add, setBorderLayoutMethods inherited from class javax.swing.JApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.applet.Applet
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatusMethods inherited from class java.awt.Container
add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
Viewer
public Viewer()
-
-
Method Details
-
getComponent
Returns a Component that displays the report. -
getComponent
Returns a Component that displays the report, with the specified scroll bar option -
getReportCanvas
Gets the ReportCanvas object associated with this viewer -
init
public void init()For internal use only -
start
public void start()For internal use only -
destroy
public void destroy()For internal use only -
stop
public void stop()For internal use only -
main
internal use only -
setReportMain
public void setReportMain(quadbase.reportdesigner.util.IReportMain reportMain) internal use only. Sets the main report used. -
setMouseListener
Allow the user to implement their own mouse listeners and trap all mouse events -
setMouseMotionListener
Sets a MouseMotionListener to be used with the Viewer. -
setCanvasBackgroundColor
Sets the Canvas Background color of the viewed application or applet. -
setMenuVisible
public void setMenuVisible(boolean b) Sets the visibility of the Menu. -
setSectionMenuVisible
public void setSectionMenuVisible(boolean b) Sets the visibility of the Section Menu. -
setSectionoMenuItemVisible
Sets the visibility of some particular menu item(s). -
setPageMenuVisible
public void setPageMenuVisible(boolean b) Sets the visibility of the Page Menu. -
setPageMenuItemVisible
Sets the visibility of some particular menuitem(s) on the page Menu. -
setOutputMenuVisible
public void setOutputMenuVisible(boolean b) Sets the visibility of the Output Menu. -
setOutputMenuItemVisible
Sets the visibility of some particular menu item(s) on the Output Menu. -
setBackMenuItemVisible
public void setBackMenuItemVisible(boolean b) Sets the visibility of the Back Menu Item. -
setRefreshMenuItemVisible
public void setRefreshMenuItemVisible(boolean b) Sets the visibility of the Refresh Menu Item. -
setGoToMenuItemVisible
public void setGoToMenuItemVisible(boolean b) Sets the visibility of the Go To Menu Item. -
setZoomMenuItemVisible
public void setZoomMenuItemVisible(boolean b) Sets the visibility of the Zoom Menu Item. -
setSortMenuVisible
public void setSortMenuVisible(boolean b) Sets the visibility of the Sort Menu. -
setMultiDrillDownVisible
public void setMultiDrillDownVisible(boolean b) Sets the visibility of Multi Drill Down. -
setToolBarMenuVisible
public void setToolBarMenuVisible(boolean b) sets the display status of toolbar menu item in popup menu -
setDynamicExport
public void setDynamicExport(boolean state, String serverName, int serverPort, String servletDirectory) Sets the attributes for a dynamic export (when using setExportServlet)- Parameters:
state- whether to use dynamic exportserverName- the name of the server with the dynamic export servletsserverPort- the port number of the server with the dynamic export servletsservletDirectory- the servlet context to the server with the dynamic export servlets
-
setExportServlet
Sets the url to the ViewerExportServlet, which is used for exporting to a servlet that streams back content to the client via a browser url- Parameters:
url- the url to the servlet, for example: "http://localhost:8080/servlet/ViewerExportServlet"
-