Class PrintingPlugin
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.AbstractActionPlugin
-
- org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.AbstractExportActionPlugin
-
- org.pentaho.reporting.engine.classic.core.modules.gui.print.PrintingPlugin
-
- All Implemented Interfaces:
ActionPlugin
,ExportActionPlugin
public class PrintingPlugin extends AbstractExportActionPlugin
An export plugin for thejava.awt.print
API.- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_RESOURCE_CLASS
The base resource class.static String
PROGRESS_DIALOG_ENABLE_KEY
-
Fields inherited from class org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.AbstractActionPlugin
ENABLED_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description PrintingPlugin()
DefaultConstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ReportProgressDialog
createProgressDialog()
Creates the progress dialog that monitors the export process.KeyStroke
getAcceleratorKey()
Returns the accelerator key for the export action.protected String
getConfigurationPrefix()
String
getDisplayName()
Returns the display name for the export action.Icon
getLargeIcon()
Returns the large icon for the export action.Integer
getMnemonicKey()
Returns the mnemonic key code.protected org.pentaho.reporting.libraries.base.util.ResourceBundleSupport
getResources()
Returns the resourcebundle used to translate strings.String
getShortDescription()
Returns the short description for the export action.Icon
getSmallIcon()
Returns the small icon for the export action.boolean
initialize(SwingGuiContext context)
boolean
performExport(MasterReport report)
Exports a report.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.AbstractExportActionPlugin
createExportDialog, deinitialize, isProgressDialogEnabled, performShowExportDialog
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.AbstractActionPlugin
addPropertyChangeListener, addPropertyChangeListener, getBaseResources, getConfig, getContext, getIconTheme, getMenuOrder, getPropertyChangeSupport, getRole, getRolePreference, getToolbarOrder, isAddToMenu, isAddToToolbar, isEnabled, isSeparated, removePropertyChangeListener, setEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ActionPlugin
addPropertyChangeListener, addPropertyChangeListener, getMenuOrder, getRole, getRolePreference, getToolbarOrder, isAddToMenu, isAddToToolbar, isEnabled, isSeparated, removePropertyChangeListener
-
-
-
-
Field Detail
-
BASE_RESOURCE_CLASS
public static final String BASE_RESOURCE_CLASS
The base resource class.- See Also:
- Constant Field Values
-
PROGRESS_DIALOG_ENABLE_KEY
public static final String PROGRESS_DIALOG_ENABLE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public boolean initialize(SwingGuiContext context)
- Specified by:
initialize
in interfaceActionPlugin
- Overrides:
initialize
in classAbstractExportActionPlugin
-
getResources
protected org.pentaho.reporting.libraries.base.util.ResourceBundleSupport getResources()
Returns the resourcebundle used to translate strings.- Returns:
- the resourcebundle.
-
createProgressDialog
protected ReportProgressDialog createProgressDialog()
Creates the progress dialog that monitors the export process.- Overrides:
createProgressDialog
in classAbstractActionPlugin
- Returns:
- the progress monitor dialog.
-
getConfigurationPrefix
protected String getConfigurationPrefix()
- Specified by:
getConfigurationPrefix
in classAbstractActionPlugin
-
performExport
public boolean performExport(MasterReport report)
Exports a report.- Parameters:
report
- the report.- Returns:
- true, if the export was successful, false otherwise.
-
getDisplayName
public String getDisplayName()
Returns the display name for the export action.- Returns:
- The display name.
-
getShortDescription
public String getShortDescription()
Returns the short description for the export action.- Returns:
- The short description.
-
getSmallIcon
public Icon getSmallIcon()
Returns the small icon for the export action.- Returns:
- The icon.
-
getLargeIcon
public Icon getLargeIcon()
Returns the large icon for the export action.- Returns:
- The icon.
-
getAcceleratorKey
public KeyStroke getAcceleratorKey()
Returns the accelerator key for the export action.- Returns:
- The accelerator key.
-
getMnemonicKey
public Integer getMnemonicKey()
Returns the mnemonic key code.- Returns:
- The code.
-
-