com.jrefinery.report.preview
Class AbstractExportPlugin

java.lang.Object
  |
  +--com.jrefinery.report.preview.AbstractExportPlugin
All Implemented Interfaces:
ExportPlugin
Direct Known Subclasses:
CSVExportPlugin, ExcelExportPlugin, HtmlExportPlugin, PageSetupPlugin, PDFExportPlugin, PlainTextExportPlugin, PrintingPlugin

public abstract class AbstractExportPlugin
extends java.lang.Object
implements ExportPlugin


Constructor Summary
AbstractExportPlugin()
           
 
Method Summary
 PreviewProxyBase getBase()
           
 java.lang.String getFailureDescription()
          Returns an error description for the last operation.
 PreviewProxy getProxy()
           
 void init(PreviewProxy proxy)
          Initializes the plugin to work with the given PreviewProxy.
 boolean isAddToToolbar()
          Returns true if the action should be added to the toolbar, and false otherwise.
 boolean isControlPlugin()
          Returns true, when this export plugin is used to configure the report or an other plugin.
 boolean isSeparated()
          Returns true if the action is separated, and false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jrefinery.report.preview.ExportPlugin
getAcceleratorKey, getDisplayName, getLargeIcon, getMnemonicKey, getShortDescription, getSmallIcon, performExport
 

Constructor Detail

AbstractExportPlugin

public AbstractExportPlugin()
Method Detail

isSeparated

public boolean isSeparated()
Returns true if the action is separated, and false otherwise.

Specified by:
isSeparated in interface ExportPlugin
Returns:
A boolean.

getFailureDescription

public java.lang.String getFailureDescription()
Returns an error description for the last operation.

Specified by:
getFailureDescription in interface ExportPlugin
Returns:
returns a error description.

isControlPlugin

public boolean isControlPlugin()
Returns true, when this export plugin is used to configure the report or an other plugin.

Specified by:
isControlPlugin in interface ExportPlugin
Returns:
true if this is a control plugin, false otherwise.

init

public void init(PreviewProxy proxy)
Initializes the plugin to work with the given PreviewProxy.

Specified by:
init in interface ExportPlugin
Parameters:
proxy -

getBase

public PreviewProxyBase getBase()

getProxy

public PreviewProxy getProxy()

isAddToToolbar

public boolean isAddToToolbar()
Returns true if the action should be added to the toolbar, and false otherwise.

Specified by:
isAddToToolbar in interface ExportPlugin
Returns:
A boolean.