org.jfree.report.modules.gui.swing.common

Class AbstractActionPlugin

public abstract class AbstractActionPlugin extends Object implements ActionPlugin

The AbstractExportPlugin provides a basic implementation of the ExportPlugin interface.

Author: Thomas Morgner

Field Summary
static StringBASE_RESOURCE_CLASS
The base resource class.
Constructor Summary
protected AbstractActionPlugin()
Method Summary
voidaddPropertyChangeListener(PropertyChangeListener l)
voidaddPropertyChangeListener(String property, PropertyChangeListener l)
protected ReportProgressDialogcreateProgressDialog()
Creates a progress dialog, and tries to assign a parent based on the given preview proxy.
ExtendedConfigurationgetConfig()
protected abstract StringgetConfigurationPrefix()
SwingGuiContextgetContext()
StringgetFailureDescription()
Returns an error description for the last operation.
IconThemegetIconTheme()
intgetMenuOrder()
A sort key used to enforce a certain order within the actions.
protected PropertyChangeSupportgetPropertyChangeSupport()
StringgetRole()
intgetRolePreference()
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(PropertyChangeListener l)
voidsetEnabled(boolean enabled)
voidsetStatusText(String statusText)

Field Detail

BASE_RESOURCE_CLASS

public static final String BASE_RESOURCE_CLASS
The base resource class.

Constructor Detail

AbstractActionPlugin

protected AbstractActionPlugin()

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

addPropertyChangeListener

public void addPropertyChangeListener(String property, PropertyChangeListener l)

createProgressDialog

protected ReportProgressDialog createProgressDialog()
Creates a progress dialog, and tries to assign a parent based on the given preview proxy.

Returns: the progress dialog.

getConfig

public ExtendedConfiguration getConfig()

getConfigurationPrefix

protected abstract String getConfigurationPrefix()

getContext

public SwingGuiContext getContext()

getFailureDescription

public 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.

getIconTheme

public IconTheme getIconTheme()

getMenuOrder

public int getMenuOrder()
A sort key used to enforce a certain order within the actions.

Returns:

getPropertyChangeSupport

protected PropertyChangeSupport getPropertyChangeSupport()

getRole

public String getRole()

getRolePreference

public int getRolePreference()

getStatusText

public String getStatusText()

getToolbarOrder

public int getToolbarOrder()

initialize

public boolean initialize(SwingGuiContext context)

isAddToMenu

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

Returns: A boolean.

isAddToToolbar

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

Returns: true, if the plugin should be added to the toolbar, false otherwise.

isEnabled

public boolean isEnabled()

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.

Returns: true, if the action should be separated from previous actions, false otherwise.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)

setEnabled

public void setEnabled(boolean enabled)

setStatusText

public void setStatusText(String statusText)