home *** CD-ROM | disk | FTP | other *** search
- package sun.awt;
-
- import java.awt.datatransfer.Clipboard;
- import java.awt.datatransfer.Transferable;
-
- public class SunClipboard extends Clipboard {
- protected AppContext contentsContext = null;
-
- public SunClipboard(String var1) {
- super(var1);
- }
-
- protected void initContext(Transferable var1) {
- this.contentsContext = AppContext.getAppContext();
- }
-
- protected synchronized void lostOwnership() {
- }
-
- protected void lostOwnershipImpl() {
- if (this.contentsContext != null) {
- AppContext var1 = this.contentsContext;
- this.contentsContext = null;
- SunToolkit.postEvent(var1, new PeerEvent(this, new 1(this), 1L));
- }
-
- }
-
- void clearAppContext() {
- this.contentsContext = null;
- }
- }
-