org.norvelle.textcite.gui.action
Class CopyTranslationAction
java.lang.Object
org.norvelle.textcite.gui.action.CopyTranslationAction
- All Implemented Interfaces:
- java.awt.datatransfer.ClipboardOwner, java.awt.event.ActionListener, java.util.EventListener
public class CopyTranslationAction
- extends java.lang.Object
- implements java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner
CopyCitationAction:
An Action class that can be assigned directly to a JMenuItem or ToolbarButton, that
copies the selected Citation's translation to the clipboard
- Author:
- Erik Norvelle
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent arg0)
Perform the clipboard copy |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
Needed to implement the ClipboardOwner interface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
citation
protected Citation citation
CopyTranslationAction
public CopyTranslationAction(Citation c)
- Construct the Action
- Parameters:
c
- The Citation whose translation will be copied
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
- Perform the clipboard copy
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
- Needed to implement the ClipboardOwner interface
- Specified by:
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner