com.jrefinery.report.preview
Class ExportAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.jrefinery.report.preview.ExportAction
All Implemented Interfaces:
javax.swing.Action, ActionDowngrade, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.lang.Runnable, java.io.Serializable

public class ExportAction
extends javax.swing.AbstractAction
implements ActionDowngrade, java.lang.Runnable

An export action that works with any class that implements the ExportPlugin interface.

Author:
Thomas Morgner.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface com.jrefinery.report.util.ActionDowngrade
ACCELERATOR_KEY, MNEMONIC_KEY
 
Fields inherited from interface javax.swing.Action
ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ExportAction(ExportPlugin plugin)
          Defines an Action object with a default description string and default icon.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Exports the current report using the installed export plug-in.
 PreviewProxyBase getProxyBase()
           
 JFreeReport getReport()
          Returns the report.
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
 void setProxyBase(PreviewProxyBase proxyBase)
           
 void setReport(JFreeReport report)
          Sets the report.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

ExportAction

public ExportAction(ExportPlugin plugin)
Defines an Action object with a default description string and default icon.

Parameters:
plugin - the export plug-in.
Method Detail

getReport

public JFreeReport getReport()
Returns the report.

Returns:
The report.

setReport

public void setReport(JFreeReport report)
Sets the report.

Parameters:
report - the report.

getProxyBase

public PreviewProxyBase getProxyBase()

setProxyBase

public void setProxyBase(PreviewProxyBase proxyBase)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Exports the current report using the installed export plug-in.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the event.

run

public void run()
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

The general contract of the method run is that it may take any action whatsoever.

Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()