public class JRSetResultViewer
extends java.lang.Object
JRSetResultViewer
class function is used for viewing and exporting
the reportset rst file information.Modifier and Type | Field and Description |
---|---|
static int |
IE
Indicates that the html browser is IE.
|
static int |
NETSCAPE
Indicates that the html browser is NETSCAPE.
|
static int |
vDebug
Specifies to open the debug log.
|
static int |
vError
Specifies to open the error log.
|
static int |
vOff
Specifies to close the debug and error logs.
|
Constructor and Description |
---|
JRSetResultViewer(Communicator communicator)
Creates a
JRSetResultViewer with the communicator . |
JRSetResultViewer(java.io.InputStream ins,
boolean zip)
Creates a
JRSetResultViewer with the rstFile's input stream and the
flag a flag to show if the stream is compressed. |
JRSetResultViewer(java.lang.String rstReportSetName)
Creates a
JRSetResultViewer |
Modifier and Type | Method and Description |
---|---|
void |
closeLog()
Deprecated.
The new setting of Logi Report log is defined in %install root%\bin\LogConfig.properties.
|
void |
exit()
If you want to quit from
Logi Report Viewer Bean , you should call this method. |
static java.util.Vector |
getAllPrinters()
Gets all the printers in system.
|
java.util.Map |
getReportInfo()
Gets the report set information.
|
JRResultViewer |
getResultViewer(java.lang.String reportName,
java.lang.String viewerName)
Gets the
JRResultViewer object according to the reportName and viewerName . |
java.lang.String |
getTempPath()
Gets the temporary path.
|
java.lang.String |
saveAs(javax.swing.JFrame parent)
Saves the report set content as one rst file.
|
void |
setHomePath(java.lang.String homepath)
Sets home path.
|
boolean |
setLogFile(java.lang.String fileName)
Sets the log file.
|
void |
setShowButton(boolean showButton)
Sets the flag that indicates whether to show navigation buttons or not for each
JRResultViewer object. |
void |
setShowInfoLevel(int level)
Enables/disables output error and debug message.
|
void |
setTempPath(java.lang.String sTempPath)
Sets the temporary path.
|
public static final int IE
public static final int NETSCAPE
public static final int vOff
public static final int vDebug
public static final int vError
public JRSetResultViewer(java.lang.String rstReportSetName) throws java.io.IOException, VersionException
JRSetResultViewer with the reportSetName
.
rstReportSetName
- It is a rst file.java.io.IOException
- Produces IO error when loading the report set from the rst file.VersionException
- Produces version error when opening the rst file.public JRSetResultViewer(Communicator communicator)
JRSetResultViewer
with the communicator
.communicator
- The Communicator
object.JREngine.getReportCommunicator()
public JRSetResultViewer(java.io.InputStream ins, boolean zip) throws VersionException, java.io.IOException
JRSetResultViewer
with the rstFile's input stream and the
flag a flag to show if the stream is compressed.ins
- The InputStream
object from which to read the report information.zip
- The flag that specifies whether the input stream is compressed or not.java.io.IOException
- Produces IO error when loading the report set from the rst file.VersionException
- Produces version error when opening the rst file.public void setShowButton(boolean showButton)
JRResultViewer
object.showButton
- If true, the turning page buttons will be shown for
each JRResultViewer
.public java.util.Map getReportInfo() throws VersionException
Vector
whose
elements are a string array in which the first element is viewerName, the second
is description name and the third is display name.
VersionException
- Produces version error when loading report from the rst file.public JRResultViewer getResultViewer(java.lang.String reportName, java.lang.String viewerName) throws VersionException
JRResultViewer
object according to the reportName
and viewerName
.reportName
- It is the key of the reportInfo(Map).viewerName
- The reportInfo that holds the viewer name.JRResultViewer
object.VersionException
getReportInfo()
public java.lang.String saveAs(javax.swing.JFrame parent)
parent
- The file select dialog that shows parent.public void exit()
Logi Report Viewer Bean
, you should call this method.
This method will do some clean up work such as deleting the temporary files.
It is important, so please do not forget to call this method!public void closeLog()
public static java.util.Vector getAllPrinters()
public java.lang.String getTempPath()
public void setHomePath(java.lang.String homepath)
homepath
- The string of home path.public boolean setLogFile(java.lang.String fileName)
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 will be used. If no file name is specified, the file logireport.log will be used.
public void setTempPath(java.lang.String sTempPath)
sTempPath
- The temporary path(absolute path).