com.jrefinery.report.preview
Class ExportPluginFactory

java.lang.Object
  extended bycom.jrefinery.report.preview.ExportPluginFactory

public class ExportPluginFactory
extends java.lang.Object

An export plug-in factory.

Author:
Thomas Morgner.

Field Summary
static java.lang.String PLUGIN_ENABLE_PREFIX
          The plug-in enable prefix.
 
Constructor Summary
ExportPluginFactory()
           
 
Method Summary
 java.util.ArrayList createExportPlugIns(PreviewProxy proxy, ReportConfiguration config)
          Creates a list containing all available export plugins.
protected  ExportPlugin createPlugIn(PreviewProxy proxy, java.lang.String className)
          Creates an Excel plug-in.
protected  boolean isPluginEnabled(ReportConfiguration config, java.lang.String plugin)
          Returns true if the plug-in is enabled for a given report configuration, and false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ENABLE_PREFIX

public static final java.lang.String PLUGIN_ENABLE_PREFIX
The plug-in enable prefix.

See Also:
Constant Field Values
Constructor Detail

ExportPluginFactory

public ExportPluginFactory()
Method Detail

createPlugIn

protected ExportPlugin createPlugIn(PreviewProxy proxy,
                                    java.lang.String className)
Creates an Excel plug-in.

Parameters:
proxy - the preview proxy.
Returns:
The plug-in.

isPluginEnabled

protected boolean isPluginEnabled(ReportConfiguration config,
                                  java.lang.String plugin)
Returns true if the plug-in is enabled for a given report configuration, and false otherwise.

Parameters:
config - the report configuration.
plugin - the plug-in key.
Returns:
A boolean.

createExportPlugIns

public java.util.ArrayList createExportPlugIns(PreviewProxy proxy,
                                               ReportConfiguration config)
Creates a list containing all available export plugins.

Parameters:
proxy - the preview proxy.
config - the report configuration.
Returns:
The list of export plugins.