Class AbstractActionPlugin
- java.lang.Object
-
- org.jfree.report.modules.gui.swing.common.AbstractActionPlugin
-
- All Implemented Interfaces:
ActionPlugin
- Direct Known Subclasses:
AboutActionPlugin,AbstractExportActionPlugin,ExitActionPlugin,GoToActionPlugin,GoToFirstPageActionPlugin,GoToLastPageActionPlugin,GoToNextPageActionPlugin,GoToPreviousPageActionPlugin,PrintActionPlugin,ZoomCustomActionPlugin,ZoomInActionPlugin,ZoomListActionPlugin,ZoomOutActionPlugin
public abstract class AbstractActionPlugin extends java.lang.Object implements ActionPlugin
The AbstractExportPlugin provides a basic implementation of the ExportPlugin interface.- Author:
- Thomas Morgner
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE_RESOURCE_CLASSThe base resource class.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractActionPlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)voidaddPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener l)protected ReportProgressDialogcreateProgressDialog()Creates a progress dialog, and tries to assign a parent based on the given preview proxy.org.pentaho.reporting.libraries.base.config.ExtendedConfigurationgetConfig()protected abstract java.lang.StringgetConfigurationPrefix()SwingGuiContextgetContext()java.lang.StringgetFailureDescription()Returns an error description for the last operation.IconThemegetIconTheme()intgetMenuOrder()A sort key used to enforce a certain order within the actions.protected java.beans.PropertyChangeSupportgetPropertyChangeSupport()java.lang.StringgetRole()intgetRolePreference()java.lang.StringgetStatusText()intgetToolbarOrder()booleaninitialize(SwingGuiContext context)booleanisAddToMenu()Returns true if the action should be added to the menu, and false otherwise.booleanisAddToToolbar()Returns true if the action should be added to the toolbar, and false otherwise.booleanisEnabled()booleanisSeparated()Returns true if the action is separated, and false otherwise.voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)voidsetEnabled(boolean enabled)voidsetStatusText(java.lang.String statusText)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.report.modules.gui.swing.common.ActionPlugin
getAcceleratorKey, getDisplayName, getLargeIcon, getMnemonicKey, getShortDescription, getSmallIcon
-
-
-
-
Field Detail
-
BASE_RESOURCE_CLASS
public static final java.lang.String BASE_RESOURCE_CLASS
The base resource class.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public boolean initialize(SwingGuiContext context)
- Specified by:
initializein interfaceActionPlugin
-
getPropertyChangeSupport
protected java.beans.PropertyChangeSupport getPropertyChangeSupport()
-
getContext
public SwingGuiContext getContext()
-
getConfig
public org.pentaho.reporting.libraries.base.config.ExtendedConfiguration getConfig()
-
isSeparated
public boolean isSeparated()
Returns true if the action is separated, and false otherwise. A separated action starts a new action group and will be spearated from previous actions on the menu and toolbar.- Specified by:
isSeparatedin interfaceActionPlugin- Returns:
- true, if the action should be separated from previous actions, false otherwise.
-
getFailureDescription
public java.lang.String getFailureDescription()
Returns an error description for the last operation. This implementation provides a basic default failure description text and should be overriden to give a more detailed explaination.- Returns:
- returns a error description.
-
getStatusText
public java.lang.String getStatusText()
-
setStatusText
public void setStatusText(java.lang.String statusText)
-
isAddToToolbar
public boolean isAddToToolbar()
Returns true if the action should be added to the toolbar, and false otherwise.- Specified by:
isAddToToolbarin interfaceActionPlugin- Returns:
- true, if the plugin should be added to the toolbar, false otherwise.
-
isAddToMenu
public boolean isAddToMenu()
Returns true if the action should be added to the menu, and false otherwise.- Specified by:
isAddToMenuin interfaceActionPlugin- Returns:
- A boolean.
-
createProgressDialog
protected ReportProgressDialog createProgressDialog()
Creates a progress dialog, and tries to assign a parent based on the given preview proxy.- Returns:
- the progress dialog.
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
- Specified by:
addPropertyChangeListenerin interfaceActionPlugin
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener l)- Specified by:
addPropertyChangeListenerin interfaceActionPlugin
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
- Specified by:
removePropertyChangeListenerin interfaceActionPlugin
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnabled
public boolean isEnabled()
-
getIconTheme
public IconTheme getIconTheme()
-
getConfigurationPrefix
protected abstract java.lang.String getConfigurationPrefix()
-
getMenuOrder
public int getMenuOrder()
A sort key used to enforce a certain order within the actions.- Specified by:
getMenuOrderin interfaceActionPlugin- Returns:
-
getToolbarOrder
public int getToolbarOrder()
- Specified by:
getToolbarOrderin interfaceActionPlugin
-
getRole
public java.lang.String getRole()
- Specified by:
getRolein interfaceActionPlugin
-
getRolePreference
public int getRolePreference()
- Specified by:
getRolePreferencein interfaceActionPlugin
-
-