Class jet.bean.JRPrepareViewer

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jet.bean.JRPrepareViewer

public class JRPrepareViewer
extends Panel
implements Externalizable

Variable Index

 o vDebug
The constant for setShowInfoLevel.
 o vError
The constant for setShowInfoLevel.
 o vOff
The constant for setShowInfoLevel.

Constructor Index

 o JRPrepareViewer()
Default constructor.

Method Index

 o getCatName()
Get the current working catalog name.
 o getPort()
Get the current port number
 o getReportName()
Get the name of current viewed report.
 o getReportParams()
Get the parameter values of the report.
 o getServerName()
Get the name of the current server or IP address.
 o getStatus()
Get the current status of the viewer bean"
 o prepareRun()
prepare to run the report
 o readExternal(ObjectInput)
กก
 o setCatName(String)
Set the catalog name which is going to be used.
 o setLoadReport(String)
Load the report, calling this method will make the report engine run.
 o setLogFile(String)
Set the name of the log file.
 o setPort(String)
Set the Port number
 o setReportName(String)
Set the name of report to be viewed.
 o setServerName(String)
Set the server name or IP address.
 o setShowInfoLevel(int)
Set show debug information level.
 o writeExternal(ObjectOutput)
กก

Variables

 o vOff

 public static final int vOff
The constant for setShowInfoLevel. Specifies an turning off debug and error information.
See Also:
setShowInfoLevel

 o vDebug

 public static final int vDebug
The constant for setShowInfoLevel. Specifies an turning on debug information.
See Also:
setShowInfoLevel

 o vError

 public static final int vError
The constant for setShowInfoLevel. Specifies an turning on error information.
See Also:
setShowInfoLevel

Constructors

 o JRPrepareViewer

 public JRPrepareViewer()
Default constructor.

Methods

 o setServerName

 public void setServerName(String serverName)
Set the server name or IP address.
Parameters:
serverName - the name of the server which provides the report.
See Also:
getServerName

 o getServerName

 public String getServerName()
Get the name of the current server or IP address.
Returns:
the server name or IP address.
See Also:
setServerName

 o setPort

 public void setPort(String port)
Set the Port number
Parameters:
port - the port number
See Also:
getPort

 o getPort

 public String getPort()
Get the current port number
Returns:
the current port
See Also:
setPort

 o getReportName

 public String getReportName()
Get the name of current viewed report.
Returns:
the name of the report which is being viewed.
See Also:
setReportName

 o setReportName

 public void setReportName(String reportName)
Set the name of report to be viewed.
Parameters:
reportName - the report you want to view.
See Also:
getReportName

 o setCatName

 public void setCatName(String catName)
Set the catalog name which is going to be used.
Parameters:
the - name of catalog exist on current server.
See Also:
getCatName

 o getCatName

 public String getCatName()
Get the current working catalog name.
Returns:
the catalog name
See Also:
setCatName

 o setLoadReport

 public void setLoadReport(String loadReport)
Load the report, calling this method will make the report engine run.
Parameters:
loadReport - indicate whether to load the report, if yes then load.

 o prepareRun

 public void prepareRun()
prepare to run the report

 o getReportParams

 public Vector getReportParams()
Get the parameter values of the report.
Returns:
the string containing the parameter values, separated by comma (',').

 o getStatus

 public String getStatus()
Get the current status of the viewer bean"
Returns:
a string, it could be: "Ok","No Report Load",etc.

 o setShowInfoLevel

 public void setShowInfoLevel(int level)
Set show debug information level.
Parameters:
level - the debug level

the debug level are vDebug, vError and vOff used for showing debug information, error information and turning off debug and error information.

See Also:
setLogFile

 o setLogFile

 public boolean setLogFile(String fileName)
Set the name of the log file. The debug and error information will be save to this file.
Parameters:
fileName - the log file name

LogFileName specifies where the debug, error and other information will go. LogFileName contains both the path and the file name. If no path is specified, the current path is used. If no file name is specified, the file jreport.log is used

Returns:
true if successful
See Also:
setShowInfoLevel

กก