public class JRViewerController extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isXML |
protected JasperPrint |
jasperPrint |
protected boolean |
reloadSupported |
protected RenderersCache |
renderersCache |
protected 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,
Locale locale,
ResourceBundle resBundle) |
JRViewerController(Locale locale,
ResourceBundle resBundle) |
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 String reportFileName
protected boolean reloadSupported
protected JasperPrint jasperPrint
protected RenderersCache renderersCache
public JRViewerController(Locale locale, ResourceBundle resBundle)
public JRViewerController(JasperReportsContext jasperReportsContext, Locale locale, ResourceBundle resBundle)
public void addListener(JRViewerListener listener)
public boolean removeListener(JRViewerListener listener)
protected void fireListeners(int eventCode)
protected void setReport(String fileName, boolean isXmlReport) throws JRException
JRException
public void loadReport(String fileName, boolean isXmlReport) throws JRException
JRException
protected void setReport(InputStream is, boolean isXmlReport) throws JRException
JRException
public void loadReport(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 ResourceBundle getResourceBundle()
public Locale getLocale()
public JasperPrint getJasperPrint()
public int getPageCount()
public PrintPageFormat getPageFormat()
protected RenderersCache getRenderersCache()
public void clear()
public int getPageIndex()
public float getZoom()
public boolean isReloadSupported()
public boolean isFitPage()
public boolean isFitWidth()
public void fitPage()
public void fitWidth()
Copyright © 2017. All rights reserved.