public class Viewer
extends quadbase.reportdesigner.ReportViewer.CApplet
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:
java.applet.Applet.AccessibleApplet
Constructor and Description |
---|
Viewer() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
For internal use only
|
java.awt.Component |
getComponent(IReport report)
Returns a Component that displays the report.
|
java.awt.Component |
getComponent(IReport report,
int scrollBarOption)
Returns a Component that displays the report, with the specified scroll bar option
|
ReportCanvas |
getReportCanvas()
Gets the ReportCanvas object associated with this viewer
|
void |
init()
For internal use only
|
static void |
main(java.lang.String[] argv)
internal use only
|
void |
setBackMenuItemVisible(boolean b)
Sets the visibility of the Back Menu Item.
|
void |
setCanvasBackgroundColor(java.awt.Color color)
Sets the Canvas Background color of the viewed application or applet.
|
void |
setDynamicExport(boolean state,
java.lang.String serverName,
int serverPort,
java.lang.String servletDirectory)
Sets the attributes for a dynamic export (when using setExportServlet)
|
void |
setExportServlet(java.lang.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 url
|
void |
setGoToMenuItemVisible(boolean b)
Sets the visibility of the Go To Menu Item.
|
void |
setMenuVisible(boolean b)
Sets the visibility of the Menu.
|
void |
setMouseListener(java.awt.event.MouseListener listener)
Allow the user to implement their own mouse listeners and trap all mouse events
|
void |
setMouseMotionListener(java.awt.event.MouseMotionListener listener)
Sets a MouseMotionListener to be used with the Viewer.
|
void |
setMultiDrillDownVisible(boolean b)
Sets the visibility of Multi Drill Down.
|
void |
setOutputMenuItemVisible(java.lang.String[] menuItem,
boolean b)
Sets the visibility of some particular menu item(s) on the Output Menu.
|
void |
setOutputMenuVisible(boolean b)
Sets the visibility of the Output Menu.
|
void |
setPageMenuItemVisible(java.lang.String[] menuItem,
boolean b)
Sets the visibility of some particular menuitem(s) on the page Menu.
|
void |
setPageMenuVisible(boolean b)
Sets the visibility of the Page Menu.
|
void |
setRefreshMenuItemVisible(boolean b)
Sets the visibility of the Refresh Menu Item.
|
void |
setReportMain(quadbase.reportdesigner.util.IReportMain reportMain)
internal use only.
|
void |
setSectionMenuVisible(boolean b)
Sets the visibility of the Section Menu.
|
void |
setSectionoMenuItemVisible(java.lang.String[] menuItem,
boolean b)
Sets the visibility of some particular menu item(s).
|
void |
setSortMenuVisible(boolean b)
Sets the visibility of the Sort Menu.
|
void |
setToolBarMenuVisible(boolean b)
sets the display status of toolbar menu item in popup menu
|
void |
setZoomMenuItemVisible(boolean b)
Sets the visibility of the Zoom Menu Item.
|
void |
start()
For internal use only
|
void |
stop()
For internal use only
|
getContentPane, setBorderLayout
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus
add, add, add, add, add, addContainerListener, addImpl, 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, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
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, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.awt.Component getComponent(IReport report)
public java.awt.Component getComponent(IReport report, int scrollBarOption)
public ReportCanvas getReportCanvas()
public void init()
init
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
public void destroy()
destroy
in class java.applet.Applet
public void stop()
stop
in class java.applet.Applet
public static void main(java.lang.String[] argv)
public void setReportMain(quadbase.reportdesigner.util.IReportMain reportMain)
public void setMouseListener(java.awt.event.MouseListener listener)
public void setMouseMotionListener(java.awt.event.MouseMotionListener listener)
public void setCanvasBackgroundColor(java.awt.Color color)
public void setMenuVisible(boolean b)
public void setSectionMenuVisible(boolean b)
public void setSectionoMenuItemVisible(java.lang.String[] menuItem, boolean b)
public void setPageMenuVisible(boolean b)
public void setPageMenuItemVisible(java.lang.String[] menuItem, boolean b)
public void setOutputMenuVisible(boolean b)
public void setOutputMenuItemVisible(java.lang.String[] menuItem, boolean b)
public void setBackMenuItemVisible(boolean b)
public void setRefreshMenuItemVisible(boolean b)
public void setGoToMenuItemVisible(boolean b)
public void setZoomMenuItemVisible(boolean b)
public void setSortMenuVisible(boolean b)
public void setMultiDrillDownVisible(boolean b)
public void setToolBarMenuVisible(boolean b)
public void setDynamicExport(boolean state, java.lang.String serverName, int serverPort, java.lang.String servletDirectory)
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 servletspublic void setExportServlet(java.lang.String url)
url
- the url to the servlet, for example:
"http://localhost:8080/servlet/ViewerExportServlet"