public class Viewer
extends quadbase.reportdesigner.PageViewer.swing.CApplet
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
Viewer()
Allocates a new Viewer Object
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Component |
getComponent(java.applet.Applet applet,
java.lang.String fileName,
long bufferTimeInSec)
Get the Page Viewer as a java.awt.Component.
|
static java.awt.Component |
getComponent(java.applet.Applet applet,
java.lang.String fileName,
long bufferTimeInSec,
java.lang.String securityLevel)
Get the Page Viewer as a java.awt.Component.
|
static java.awt.Component |
getComponent(java.awt.Frame frame,
java.lang.String fileName,
long bufferTimeInSec)
Get the Page Viewer as a java.awt.Component.
|
static java.awt.Component |
getComponent(java.awt.Frame frame,
java.lang.String fileName,
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
|
static ReportCanvas |
getReportCanvas(java.applet.Applet applet,
java.lang.String fileName,
long bufferTimeInSec)
Get the Page Viewer as ReportCanvas.
|
static ReportCanvas |
getReportCanvas(java.applet.Applet applet,
java.lang.String fileName,
long bufferTimeInSec,
java.lang.String securityLevel)
Get the Page Viewer as ReportCanvas.
|
static ReportCanvas |
getReportCanvas(java.awt.Frame frame,
java.lang.String fileName,
long bufferTimeInSec)
Get the Page Viewer as ReportCanvas.
|
static ReportCanvas |
getReportCanvas(java.awt.Frame frame,
java.lang.String fileName,
long bufferTimeInSec,
java.lang.String securityLevel)
Get the Page Viewer as ReportCanvas.
|
static java.lang.String |
getServletContext()
Gets the servlet context for EspressManager servlet
|
void |
init()
internal use only
|
static void |
main(java.lang.String[] argv)
This is the entry point of the Page Viewer application.
|
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) |
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.
|
static void |
setServletContext(java.lang.String context)
Sets the servlet context for EspressManager servlet
|
static void |
setServletRunner(java.lang.String comm_url)
Set servlet runner hostname and port number Note: this static method MUST be called before
any QbChart constructor
|
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
|
static void |
useServlet(boolean b)
Determines whether to use SOCKET or HTTP or SERVLET for chart server connection
Note that this static method MUST be called before any QbChart constructor.
|
add, add, setBorderLayout
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
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, 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, 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, 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 void init()
init
in class java.applet.Applet
public static void main(java.lang.String[] argv)
public static java.awt.Component getComponent(java.applet.Applet applet, java.lang.String fileName, long bufferTimeInSec)
applet
- a handle to an applet for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static java.awt.Component getComponent(java.awt.Frame frame, java.lang.String fileName, long bufferTimeInSec)
frame
- a handle to a frame for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static java.awt.Component getComponent(java.applet.Applet applet, java.lang.String fileName, long bufferTimeInSec, java.lang.String securityLevel)
applet
- a handle to an applet for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static java.awt.Component getComponent(java.awt.Frame frame, java.lang.String fileName, long bufferTimeInSec, java.lang.String securityLevel)
frame
- a handle to a frame for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public ReportCanvas getReportCanvas()
public static ReportCanvas getReportCanvas(java.applet.Applet applet, java.lang.String fileName, long bufferTimeInSec)
applet
- a handle to an applet for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static ReportCanvas getReportCanvas(java.awt.Frame frame, java.lang.String fileName, long bufferTimeInSec)
frame
- a handle to a frame for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static ReportCanvas getReportCanvas(java.applet.Applet applet, java.lang.String fileName, long bufferTimeInSec, java.lang.String securityLevel)
applet
- a handle to an applet for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static ReportCanvas getReportCanvas(java.awt.Frame frame, java.lang.String fileName, long bufferTimeInSec, java.lang.String securityLevel)
frame
- a handle to a frame for viewing, if applicable. Otherwise, use null.fileName
- name of report file to get pages from.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.public static void setServletRunner(java.lang.String comm_url)
comm_url
- servlet runner hostname and port numberpublic static void useServlet(boolean b)
b
- If true use SERVLET connection, otherwise use other connection The default value
is false.public static void setServletContext(java.lang.String context)
context
- the servlet contextpublic static java.lang.String getServletContext()
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 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)