jdbreport
Class JDBReport

java.lang.Object
  extended by jdbreport.JDBReport

public class JDBReport
extends Object

Version:
2.0 04.03.2011
Author:
Andrey Kholmanskih

Constructor Summary
JDBReport()
           
 
Method Summary
static ReportDialog showModalReport(Window owner, URL url, Map<String,Object> dataSetList, Map<Object,Object> vars, boolean show)
           
static ReportEditor showReport(File file)
          Loads the report from file and shows ReportEditor window
static ReportEditor showReport(File file, Map<String,Object> dataSetList)
          Loads the report from file and shows ReportEditor window
static ReportEditor showReport(File file, Map<String,Object> dataSetList, Map<Object,Object> vars)
          Loads the report from file and shows ReportEditor window
static ReportEditor showReport(File file, Map<String,Object> dataSetList, Map<Object,Object> vars, boolean show)
          Loads the report from file
static ReportEditor showReport(URL url)
          Loads the report from url and shows ReportEditor window
static ReportEditor showReport(URL url, Map<String,Object> dataSetList)
          Loads the report from url and shows ReportEditor window
static ReportEditor showReport(URL url, Map<String,Object> dataSetList, Map<Object,Object> vars)
          Loads report from url and shows ReportEditor window
static ReportEditor showReport(URL url, Map<String,Object> dataSetList, Map<Object,Object> vars, boolean show)
          Loads the report from url
static ReportEditor viewReport()
          Shows empty ReportEditor window
static ReportEditor viewReport(File file)
          Shows ReportEditor window with report from file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBReport

public JDBReport()
Method Detail

showReport

public static ReportEditor showReport(File file)
                               throws LoadReportException
Loads the report from file and shows ReportEditor window

Parameters:
file - report template file
Returns:
ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(File file,
                                      Map<String,Object> dataSetList)
                               throws LoadReportException
Loads the report from file and shows ReportEditor window

Parameters:
file - report template file
dataSetList - the list of DataSets
Returns:
ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(File file,
                                      Map<String,Object> dataSetList,
                                      Map<Object,Object> vars)
                               throws LoadReportException
Loads the report from file and shows ReportEditor window

Parameters:
file - report template file
dataSetList - the list of DataSets
vars - the list of variables
Returns:
ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(URL url)
                               throws LoadReportException
Loads the report from url and shows ReportEditor window

Parameters:
url - report template url
Returns:
ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(URL url,
                                      Map<String,Object> dataSetList)
                               throws LoadReportException
Loads the report from url and shows ReportEditor window

Parameters:
url - report template url
dataSetList - the list of DataSets
Returns:
ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(URL url,
                                      Map<String,Object> dataSetList,
                                      Map<Object,Object> vars)
                               throws LoadReportException
Loads report from url and shows ReportEditor window

Parameters:
url - - report template url
dataSetList - the list of DataSets
vars - var list
Returns:
- ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(File file,
                                      Map<String,Object> dataSetList,
                                      Map<Object,Object> vars,
                                      boolean show)
                               throws LoadReportException
Loads the report from file

Parameters:
file - report template file
dataSetList - the list of DataSets
vars - the list of variables
show - if true set visible Report window
Returns:
ReportEditor window
Throws:
LoadReportException

showReport

public static ReportEditor showReport(URL url,
                                      Map<String,Object> dataSetList,
                                      Map<Object,Object> vars,
                                      boolean show)
                               throws LoadReportException
Loads the report from url

Parameters:
url - report template url
dataSetList - the list of DataSets
vars - the list of variables
show - if true set visible Report window
Returns:
ReportEditor window
Throws:
LoadReportException

viewReport

public static ReportEditor viewReport()
Shows empty ReportEditor window

Returns:
ReportEditor window

viewReport

public static ReportEditor viewReport(File file)
Shows ReportEditor window with report from file

Parameters:
file - report file
Returns:
ReportEditor window

showModalReport

public static ReportDialog showModalReport(Window owner,
                                           URL url,
                                           Map<String,Object> dataSetList,
                                           Map<Object,Object> vars,
                                           boolean show)
                                    throws LoadReportException
Throws:
LoadReportException