net.sf.genuine.actions
Class CopyAction
java.lang.Object
javax.swing.AbstractAction
net.sf.genuine.swing.GenuineAction
net.sf.genuine.actions.CopyAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class CopyAction
- extends GenuineAction
An action that delegates a user's request to copy something either
to all active ClipboardService instances or to a specific ClipboardService
instance that is passed in the constructor.
This action is typically used for a menu entry in a menu bar / tool bar and works
generically with all registered clipboard services. It is created and registered
by the DefaultActionModule
. If you would like to
add this action to a popup menu, for example, you can access it by calling
ModuleManager.getAction(String)
.
- Author:
- Tim Wellhausen
- See Also:
- Serialized Form
Nested classes inherited from class javax.swing.AbstractAction |
|
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary |
(package private) |
CopyAction(ClipboardService clipboardService)
Passes an instance of the ClipboardService to be called when the action
is performed. |
(package private) |
CopyAction(ServiceBroker serviceBroker)
Passes an instance of the service broker to fetch and call all active,
registered clipboard services when the action is performed. |
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 |
CopyAction
CopyAction(ServiceBroker serviceBroker)
- Passes an instance of the service broker to fetch and call all active,
registered clipboard services when the action is performed.
CopyAction
CopyAction(ClipboardService clipboardService)
- Passes an instance of the ClipboardService to be called when the action
is performed.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)