com.jrefinery.report.preview
Class ExportAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--com.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
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
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. |
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 |
ExportAction
public ExportAction(ExportPlugin plugin)
- Defines an
Action
object with a default description string and default icon.
- Parameters:
plugin
- the export plug-in.
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()