|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
net.sf.genuine.swing.GenuineAction
net.sf.genuine.actions.CopyAction
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)
.
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) |
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. |
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 |
CopyAction(ServiceBroker serviceBroker)
CopyAction(ClipboardService clipboardService)
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |