public class JRViewerController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isXML |
protected JasperPrint |
jasperPrint |
protected boolean |
reloadSupported |
protected java.lang.String |
reportFileName |
protected int |
type |
protected static int |
TYPE_FILE_NAME |
protected static int |
TYPE_INPUT_STREAM |
protected static int |
TYPE_OBJECT |
Constructor and Description |
---|
JRViewerController(JasperReportsContext jasperReportsContext,
java.util.Locale locale,
java.util.ResourceBundle resBundle) |
JRViewerController(java.util.Locale locale,
java.util.ResourceBundle resBundle) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(JRViewerListener listener) |
void |
clear() |
protected void |
fireListeners(int eventCode) |
void |
fitPage() |
void |
fitWidth() |
protected void |
forceRefresh() |
java.lang.String |
getBundleString(java.lang.String key) |
JasperPrint |
getJasperPrint() |
JasperReportsContext |
getJasperReportsContext() |
java.util.Locale |
getLocale() |
int |
getPageCount() |
PrintPageFormat |
getPageFormat() |
int |
getPageIndex() |
java.util.ResourceBundle |
getResourceBundle() |
float |
getZoom() |
boolean |
hasPages() |
boolean |
isFitPage() |
boolean |
isFitWidth() |
boolean |
isReloadSupported() |
void |
loadReport(java.io.InputStream is,
boolean isXmlReport) |
void |
loadReport(JasperPrint jrPrint) |
void |
loadReport(java.lang.String fileName,
boolean isXmlReport) |
void |
refreshPage() |
void |
reload() |
boolean |
removeListener(JRViewerListener listener) |
void |
setPageIndex(int index) |
protected void |
setReport(java.io.InputStream is,
boolean isXmlReport) |
protected void |
setReport(java.lang.String fileName,
boolean isXmlReport) |
void |
setZoomRatio(float newZoom) |
protected static final int TYPE_FILE_NAME
protected static final int TYPE_INPUT_STREAM
protected static final int TYPE_OBJECT
protected int type
protected boolean isXML
protected java.lang.String reportFileName
protected boolean reloadSupported
protected JasperPrint jasperPrint
public JRViewerController(java.util.Locale locale, java.util.ResourceBundle resBundle)
public JRViewerController(JasperReportsContext jasperReportsContext, java.util.Locale locale, java.util.ResourceBundle resBundle)
public void addListener(JRViewerListener listener)
public boolean removeListener(JRViewerListener listener)
protected void fireListeners(int eventCode)
protected void setReport(java.lang.String fileName, boolean isXmlReport) throws JRException
JRException
public void loadReport(java.lang.String fileName, boolean isXmlReport) throws JRException
JRException
protected void setReport(java.io.InputStream is, boolean isXmlReport) throws JRException
JRException
public void loadReport(java.io.InputStream is, boolean isXmlReport) throws JRException
JRException
public void loadReport(JasperPrint jrPrint)
public void reload()
public boolean hasPages()
public void refreshPage()
protected void forceRefresh()
public void setZoomRatio(float newZoom)
public void setPageIndex(int index)
public JasperReportsContext getJasperReportsContext()
public java.util.ResourceBundle getResourceBundle()
public java.util.Locale getLocale()
public java.lang.String getBundleString(java.lang.String key)
public JasperPrint getJasperPrint()
public int getPageCount()
public PrintPageFormat getPageFormat()
public void clear()
public int getPageIndex()
public float getZoom()
public boolean isReloadSupported()
public boolean isFitPage()
public boolean isFitWidth()
public void fitPage()
public void fitWidth()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com