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
vDebug
- The constant for
setShowInfoLevel.
vError
- The constant for
setShowInfoLevel.
vOff
- The constant for
setShowInfoLevel.
JRPrepareViewer()
- Default constructor.
getCatName()
- Get the current working catalog name.
getPort()
- Get the current port number
getReportName()
- Get the name of current viewed report.
getReportParams()
- Get the parameter values of the report.
getServerName()
- Get the name of the current server or IP address.
getStatus()
- Get the current status of the viewer bean"
prepareRun()
- prepare to run the report
readExternal(ObjectInput)
- กก
setCatName(String)
- Set the catalog name which is going to be used.
setLoadReport(String)
- Load the report, calling this method will make the report engine run.
setLogFile(String)
- Set the name of the log file.
setPort(String)
- Set the Port number
setReportName(String)
- Set the name of report to be viewed.
setServerName(String)
- Set the server name or IP address.
setShowInfoLevel(int)
- Set show debug information level.
writeExternal(ObjectOutput)
- กก

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

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

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

JRPrepareViewer
public JRPrepareViewer()
- Default constructor.

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

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

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

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

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

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

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

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

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.

prepareRun
public void prepareRun()
- prepare to run the report

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

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

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

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
กก