edu.isi.powerloom.gui.components
Interface PLClipboardOwner

All Superinterfaces:
java.awt.datatransfer.ClipboardOwner
All Known Implementing Classes:
ExpressionEditorPanel, PLJList, PLJTextArea, PLJTextField, PLJTree

public interface PLClipboardOwner
extends java.awt.datatransfer.ClipboardOwner

Components which are capable of accepting and coughing up data should implement this.

Author:
Eric Melz
See Also:
PLClipboardOwnerParent, PLClipboardOwnerSupport, DataTransferManager

Method Summary
 void doCopy(java.lang.Object object)
           
 void doCut(java.lang.Object object)
          Do any special action (besides put data on the clipboard owner for cut and paste.
 void doDelete(PLModule module, java.lang.Object object)
           
 void doPasteFromCopy(PLModule module, java.lang.Object object)
           
 void doPasteFromCut(PLModule module, java.lang.Object object)
           
 java.lang.String getName()
           
 PLModule getSelectedModule()
           
 java.lang.Object getSelectedObject()
           
 java.util.List getTypes()
           
 void lostOwnership(java.awt.datatransfer.Clipboard c, java.awt.datatransfer.Transferable t)
           
 boolean supportsPLObjects()
          Return true if the implementor of this interface "speaks" PLObjects (e.g., as opposed to plain text) If the implementor supports PLObjects, the framework will handle datatransfer tasks such as putting the object on the clipboard (as long as getSelectedObject is implemented).
 

Method Detail

doCut

public void doCut(java.lang.Object object)
Do any special action (besides put data on the clipboard owner for cut and paste.


doCopy

public void doCopy(java.lang.Object object)

doDelete

public void doDelete(PLModule module,
                     java.lang.Object object)

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard c,
                          java.awt.datatransfer.Transferable t)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

supportsPLObjects

public boolean supportsPLObjects()
Return true if the implementor of this interface "speaks" PLObjects (e.g., as opposed to plain text) If the implementor supports PLObjects, the framework will handle datatransfer tasks such as putting the object on the clipboard (as long as getSelectedObject is implemented).


getName

public java.lang.String getName()

getTypes

public java.util.List getTypes()

getSelectedObject

public java.lang.Object getSelectedObject()

getSelectedModule

public PLModule getSelectedModule()

doPasteFromCut

public void doPasteFromCut(PLModule module,
                           java.lang.Object object)

doPasteFromCopy

public void doPasteFromCopy(PLModule module,
                            java.lang.Object object)


Copyright © 2002 University of Southern California Information Sciences Institute. All Rights Reserved.