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:
  • Constructor Details

    • Viewer

      public Viewer()
  • Method Details

    • getComponent

      public Component getComponent(IReport report)
      Returns a Component that displays the report.
    • getComponent

      public Component getComponent(IReport report, int scrollBarOption)
      Returns a Component that displays the report, with the specified scroll bar option
    • getReportCanvas

      public ReportCanvas getReportCanvas()
      Gets the ReportCanvas object associated with this viewer
    • init

      public void init()
      For internal use only
      Overrides:
      init in class Applet
    • start

      public void start()
      For internal use only
      Overrides:
      start in class Applet
    • destroy

      public void destroy()
      For internal use only
      Overrides:
      destroy in class Applet
    • stop

      public void stop()
      For internal use only
      Overrides:
      stop in class Applet
    • main

      public static void main(String[] argv)
      internal use only
    • setReportMain

      public void setReportMain(quadbase.reportdesigner.util.IReportMain reportMain)
      internal use only. Sets the main report used.
    • setMouseListener

      public void setMouseListener(MouseListener listener)
      Allow the user to implement their own mouse listeners and trap all mouse events
    • setMouseMotionListener

      public void setMouseMotionListener(MouseMotionListener listener)
      Sets a MouseMotionListener to be used with the Viewer.
    • setCanvasBackgroundColor

      public void setCanvasBackgroundColor(Color color)
      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

      public void setSectionoMenuItemVisible(String[] menuItem, boolean b)
      Sets the visibility of some particular menu item(s).
    • setPageMenuVisible

      public void setPageMenuVisible(boolean b)
      Sets the visibility of the Page Menu.
    • setPageMenuItemVisible

      public void setPageMenuItemVisible(String[] menuItem, boolean b)
      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

      public void setOutputMenuItemVisible(String[] menuItem, boolean b)
      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 export
      serverName - the name of the server with the dynamic export servlets
      serverPort - the port number of the server with the dynamic export servlets
      servletDirectory - the servlet context to the server with the dynamic export servlets
    • setExportServlet

      public void setExportServlet(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
      Parameters:
      url - the url to the servlet, for example: "http://localhost:8080/servlet/ViewerExportServlet"