diff options
Diffstat (limited to 'java/awt/datatransfer/ClipboardOwner.java')
-rw-r--r-- | java/awt/datatransfer/ClipboardOwner.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/java/awt/datatransfer/ClipboardOwner.java b/java/awt/datatransfer/ClipboardOwner.java new file mode 100644 index 000000000..db72421cc --- /dev/null +++ b/java/awt/datatransfer/ClipboardOwner.java @@ -0,0 +1,43 @@ +/************************************************************************* +/* ClipboardOwner.java -- Interface for clipboard providers +/* +/* Copyright (c) 1999 Free Software Foundation, Inc. +/* Written by Aaron M. Renn (arenn@urbanophile.com) +/* +/* This library is free software; you can redistribute it and/or modify +/* it under the terms of the GNU Library General Public License as published +/* by the Free Software Foundation, either version 2 of the License, or +/* (at your option) any later verion. +/* +/* This library is distributed in the hope that it will be useful, but +/* WITHOUT ANY WARRANTY; without even the implied warranty of +/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +/* GNU Library General Public License for more details. +/* +/* You should have received a copy of the GNU Library General Public License +/* along with this library; if not, write to the Free Software Foundation +/* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA +/*************************************************************************/ + +package java.awt.datatransfer; + +/** + * This interface is for classes that will own a clipboard object. + * + * @author Aaron M. Renn (arenn@urbanophile.com) + */ +public interface ClipboardOwner +{ + +/** + * This method is called to notify this object that it no longer + * has ownership of the specified <code>Clipboard</code>. + * + * @param clipboard The clipboard for which ownership was lost. + * @param contents The contents of the clipboard which are no longer owned. + */ +public abstract void +lostOwnership(Clipboard clipboard, Transferable contents); + +} // interface ClipboardOwner + |