|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.bean.JRSetResultViewer
public class JRSetResultViewer
The JRSetResultViewer
class function is used for viewing and exporting
the reportset rst file information.
Field Summary | |
---|---|
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 Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
closeLog()
Deprecated. The new setting of JReport log is defined in %install root%\bin\LogConfig.properties. |
void |
exit()
If you want to quit from JReport 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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public JRSetResultViewer(java.lang.String rstReportSetName) throws java.io.IOException, jet.ie.VersionException
JRSetResultViewer with the reportSetName
.
- Parameters:
rstReportSetName
- It is a rst file.
- Throws:
java.io.IOException
- Produces IO error when loading the report set from the rst file.
jet.ie.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 jet.ie.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.
jet.ie.VersionException
- Produces version error when opening the rst file.Method Detail |
---|
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 jet.ie.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.
jet.ie.VersionException
- Produces version error when loading report from the rst file.public JRResultViewer getResultViewer(java.lang.String reportName, java.lang.String viewerName) throws jet.ie.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.
jet.ie.VersionException
getReportInfo()
public java.lang.String saveAs(javax.swing.JFrame parent)
parent
- The file select dialog that shows parent.
public void exit()
JReport 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 jreport.log will be used.
public void setTempPath(java.lang.String sTempPath)
sTempPath
- The temporary path(absolute path).public void setShowInfoLevel(int level)
level
- The debug level, for example: vDebug | vError.vDebug
,
vError
,
vOff
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |