home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / awt / SunClipboard.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  848 b   |  33 lines

  1. package sun.awt;
  2.  
  3. import java.awt.datatransfer.Clipboard;
  4. import java.awt.datatransfer.Transferable;
  5.  
  6. public class SunClipboard extends Clipboard {
  7.    protected AppContext contentsContext = null;
  8.  
  9.    public SunClipboard(String var1) {
  10.       super(var1);
  11.    }
  12.  
  13.    protected void initContext(Transferable var1) {
  14.       this.contentsContext = AppContext.getAppContext();
  15.    }
  16.  
  17.    protected synchronized void lostOwnership() {
  18.    }
  19.  
  20.    protected void lostOwnershipImpl() {
  21.       if (this.contentsContext != null) {
  22.          AppContext var1 = this.contentsContext;
  23.          this.contentsContext = null;
  24.          SunToolkit.postEvent(var1, new PeerEvent(this, new 1(this), 1L));
  25.       }
  26.  
  27.    }
  28.  
  29.    void clearAppContext() {
  30.       this.contentsContext = null;
  31.    }
  32. }
  33.