org.norvelle.textcite.gui.action
Class CopyCommentAction

java.lang.Object
  extended by org.norvelle.textcite.gui.action.CopyCommentAction
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.awt.event.ActionListener, java.util.EventListener

public class CopyCommentAction
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 comment to the clipboard

Author:
Erik Norvelle

Constructor Summary
CopyCommentAction(Citation c)
          Construct the Action, at the same performing the clipboard copy
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
          Ignored... this action runs upon being constructed.
 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
 

Constructor Detail

CopyCommentAction

public CopyCommentAction(Citation c)
Construct the Action, at the same performing the clipboard copy

Parameters:
c - The Citation whose text will be copied
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Ignored... this action runs upon being constructed.

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