public class ViewerAPI
extends java.lang.Object
Constructor and Description |
---|
ViewerAPI() |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getComponent(java.applet.Applet applet,
QbReport report,
long bufferTimeInSec,
java.lang.String securityLevel)
Get the Page Viewer as a java.awt.Component.
|
java.awt.Component |
getComponent(java.awt.Frame frame,
QbReport report,
long bufferTimeInSec,
java.lang.String securityLevel)
Get the Page Viewer as a java.awt.Component.
|
ReportCanvas |
getReportCanvas()
Gets the ReportCanvas object associated with this viewer
|
void |
setBackMenuItemVisible(boolean b)
Sets the visibility of the Back Menu Item.
|
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 |
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 |
setSectionMenuItemVisible(java.lang.String[] menuItem,
boolean b)
Sets the visibility of some particular menu item(s).
|
void |
setSectionMenuVisible(boolean b)
Sets the visibility of the Section Menu.
|
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 visiblilty of zoom menu.
|
public java.awt.Component getComponent(java.applet.Applet applet, QbReport report, long bufferTimeInSec, java.lang.String securityLevel) throws java.lang.Exception
applet
- a handle to a frame for viewing, if applicable. Otherwise, use null.report
- a QbReport object.bufferTimeInSec
- this controls how often to get new pages from the Espress Manager. It looks at the
local version of the .page file (if available), and if the time since it is last
updated exceeds the bufferTimeInSec parameter, then new version of the page is
requested again from Espress Manager. Otherwise it uses the local version of the
.page file. If the local version of the .page file does not exist, it gets the
page from the Espress Manager.securityLevel
- the name of a security level to use for this Page Viewer. The security level name
must already exist and set up in the report.java.lang.Exception
public java.awt.Component getComponent(java.awt.Frame frame, QbReport report, long bufferTimeInSec, java.lang.String securityLevel) throws java.lang.Exception
frame
- a handle to a frame for viewing, if applicable. Otherwise, use null.report
- a QbReport object.bufferTimeInSec
- this controls how often to get new pages from the Espress Manager. It looks at the
local version of the .page file (if available), and if the time since it is last
updated exceeds the bufferTimeInSec parameter, then new version of the page is
requested again from Espress Manager. Otherwise it uses the local version of the
.page file. If the local version of the .page file does not exist, it gets the
page from the Espress Manager.securityLevel
- the name of a security level to use for this Page Viewer. The security level name
must already exist and set up in the report.java.lang.Exception
public ReportCanvas getReportCanvas()
public void setMenuVisible(boolean b)
public void setSectionMenuVisible(boolean b)
public void setSectionMenuItemVisible(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 setSortMenuVisible(boolean b)
public void setMultiDrillDownVisible(boolean b)
public void setZoomMenuItemVisible(boolean b)
public void setToolBarMenuVisible(boolean b)
public void setExportServlet(java.lang.String url)
url
- the url to the servlet, for example:
"http://localhost:8080/servlet/ViewerExportServlet"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 servlets