|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
inetsoft.sree.viewer.Viewer
public class Viewer
Java replet viewer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Viewer(RepletRepository repo)
Create a replet viewer and use the specified repository as the server. |
|
Viewer(String protocol,
Object url)
Create a replet viewer. |
|
| Method Summary | |
|---|---|
void |
addWindow(String title,
ViewFrame win)
Add a sub-window to the viewer mdi. |
ViewFrame |
createViewFrame(String name,
RepletRepository repo)
Create a new ViewFrame. |
void |
dispose()
Close the viewer window. |
ViewFrame |
getCurrentFrame()
Get the current report frame instance. |
Dimension |
getPreferredSize()
The previewer defaults to full screen size. |
Principal |
getPrincipal()
Get the user assigned principal. |
RepletRepository |
getRepletRepository()
Get the repository server. |
Principal |
login()
Show login dialog. |
static void |
main(String[] args)
Run viewer as a standalone program to view a saved report. |
void |
openRepository()
Popup the open repository dialog. |
protected File |
promptFile(String title,
boolean load,
inetsoft.util.gui.ReportFileFilter obj)
Prompt for a file. |
void |
removeWindow(ViewFrame win)
Remove a window from mdi. |
void |
setAppletContext(AppletContext applet)
Set the applet context if this viewer is launched from an applet. |
protected void |
setEnabled()
Set the enable flags of controls. |
void |
setExitOnClose(boolean exitit)
If the ExitOnClose is set to true, the Previewer exits from the application when the previewer window is closed. |
void |
setPreferredFrameSize(Dimension pref)
Set the preferred frame size. |
void |
setPreferredSize(Dimension size)
Set the preferred size of the previewer window. |
void |
setPrincipal(Principal principal)
Set the principal to use for requests to the repository server. |
void |
setRepletRepository(RepletRepository repo)
Set the repository server. |
void |
showMessage(String msg)
Show a message in a message dialog. |
ViewFrame |
showReplet(Object id)
Show a replet in a viewer window. |
ViewFrame |
showReplet(String name,
RepletRequest req)
Show a replet in a viewer window. |
void |
showStatus(String msg)
Show status on the status bar. |
void |
showURL(String url,
String target)
Show the document in a browser window. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public Viewer(String protocol,
Object url)
throws Exception
protocol - the protocol used to connect to the server. Acceptable
protocols are: 'rmi' and 'corba'. The url is the RMI server URL or
the ORB object if the protocol is 'corba'. If no value protocol is
passed, a local AnalyticEngine is created.
Exceptionpublic Viewer(RepletRepository repo)
| Method Detail |
|---|
public ViewFrame createViewFrame(String name,
RepletRepository repo)
name - name of the frame.repo - repository server proxy.
public void setPrincipal(Principal principal)
public void setAppletContext(AppletContext applet)
public void setRepletRepository(RepletRepository repo)
repo - repository object (proxy).public RepletRepository getRepletRepository()
public ViewFrame getCurrentFrame()
public ViewFrame showReplet(String name,
RepletRequest req)
name - replet name.req - replet request.public ViewFrame showReplet(Object id)
id - replet ID. The replet must already be generated on server.
public void showURL(String url,
String target)
url - URL string.target - target frame.public Principal getPrincipal()
public void setPreferredFrameSize(Dimension pref)
public void setExitOnClose(boolean exitit)
public Dimension getPreferredSize()
getPreferredSize in class Containerpublic void setPreferredSize(Dimension size)
setPreferredSize in class Componentpublic void dispose()
dispose in class Windowpublic void showStatus(String msg)
public void openRepository()
protected File promptFile(String title,
boolean load,
inetsoft.util.gui.ReportFileFilter obj)
title - dialog title.load - true if loading a file, otherwise is saving a file.protected void setEnabled()
public void showMessage(String msg)
public void addWindow(String title,
ViewFrame win)
public void removeWindow(ViewFrame win)
public Principal login()
throws Exception
Exceptionpublic static void main(String[] args)
Usage: java inetsoft.sree.viewer.Viewer -rmi RMI-URL [-nologin | {-u uid -p passwd}] [-replet replet-name] report
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||