com.jrefinery.report.util
Class AbstractActionDowngrade

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--com.jrefinery.report.util.AbstractActionDowngrade
All Implemented Interfaces:
javax.swing.Action, ActionDowngrade, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
AboutAction, CloseAction, ExportToCSVAction, ExportToExcelAction, ExportToHtmlAction, FirstPageAction, GotoPageAction, LastPageAction, NextPageAction, PageSetupAction, PreviewProxyBase.ZoomSetAction, PreviousPageAction, PrintAction, SaveAsAction, ZoomInAction, ZoomOutAction

public abstract class AbstractActionDowngrade
extends javax.swing.AbstractAction
implements ActionDowngrade

A class that allows Action features introduced in JDK 1.3 to be used with JDK 1.2.2, by defining the two new constants introduced by Sun in JDK 1.3.

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
static java.lang.String ACCELERATOR_KEY
          The key used for storing a KeyStroke to be used as the accelerator for the action.
static java.lang.String MNEMONIC_KEY
          The key used for storing an int key code to be used as the mnemonic for the action.
 
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
protected AbstractActionDowngrade()
          Creates a new action with a default (transparent) icon.
 
Method Summary
static java.awt.image.BufferedImage createTransparentImage(int width, int height)
          Creates a transparent image, which can be used for aligning menu items.
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

ACCELERATOR_KEY

public static final java.lang.String ACCELERATOR_KEY
The key used for storing a KeyStroke to be used as the accelerator for the action.

See Also:
Constant Field Values

MNEMONIC_KEY

public static final java.lang.String MNEMONIC_KEY
The key used for storing an int key code to be used as the mnemonic for the action.

See Also:
Constant Field Values
Constructor Detail

AbstractActionDowngrade

protected AbstractActionDowngrade()
Creates a new action with a default (transparent) icon.

Method Detail

createTransparentImage

public static java.awt.image.BufferedImage createTransparentImage(int width,
                                                                  int height)
Creates a transparent image, which can be used for aligning menu items.

Parameters:
width - the image width.
height - the image height.
Returns:
a transparent image.