net.sf.genuine.actions
Class PasteAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bynet.sf.genuine.swing.GenuineAction
          extended bynet.sf.genuine.actions.PasteAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class PasteAction
extends GenuineAction

An action that delegates a user's request to paste 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 Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
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) PasteAction(ClipboardService clipboardService)
          Passes an instance of the ClipboardService and calls it when the action is performed.
(package private) PasteAction(ServiceBroker serviceBroker)
          Passes an instance of the service broker and calls all active, registered clipboard services when the action is performed.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
Methods inherited from class net.sf.genuine.swing.GenuineAction
getId
 
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
 

Constructor Detail

PasteAction

PasteAction(ServiceBroker serviceBroker)
Passes an instance of the service broker and calls all active, registered clipboard services when the action is performed.


PasteAction

PasteAction(ClipboardService clipboardService)
Passes an instance of the ClipboardService and calls it when the action is performed.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)