< prev index next >

src/java.desktop/share/classes/sun/awt/datatransfer/SunClipboard.java

Print this page

        

*** 66,77 **** private AppContext contentsContext = null; private final Object CLIPBOARD_FLAVOR_LISTENER_KEY; /** ! * A number of <code>FlavorListener</code>s currently registered ! * on this clipboard across all <code>AppContext</code>s. */ private volatile int numberOfFlavorListeners = 0; /** * A set of {@code DataFlavor}s that is available on this clipboard. It is --- 66,77 ---- private AppContext contentsContext = null; private final Object CLIPBOARD_FLAVOR_LISTENER_KEY; /** ! * A number of {@code FlavorListener}s currently registered ! * on this clipboard across all {@code AppContext}s. */ private volatile int numberOfFlavorListeners = 0; /** * A set of {@code DataFlavor}s that is available on this clipboard. It is
*** 260,274 **** } /** * Clears the clipboard state (contents, owner and contents context) and * notifies the current owner that ownership is lost. Does nothing if the ! * argument is not <code>null</code> and is not equal to the current * contents context. * * @param disposedContext the AppContext that is disposed or ! * <code>null</code> if the ownership is lost because another * application acquired ownership. */ protected void lostOwnershipLater(final AppContext disposedContext) { final AppContext context = this.contentsContext; if (context == null) { --- 260,274 ---- } /** * Clears the clipboard state (contents, owner and contents context) and * notifies the current owner that ownership is lost. Does nothing if the ! * argument is not {@code null} and is not equal to the current * contents context. * * @param disposedContext the AppContext that is disposed or ! * {@code null} if the ownership is lost because another * application acquired ownership. */ protected void lostOwnershipLater(final AppContext disposedContext) { final AppContext context = this.contentsContext; if (context == null) {
*** 403,416 **** protected abstract void registerClipboardViewerChecked(); protected abstract void unregisterClipboardViewerChecked(); /** ! * Checks change of the <code>DataFlavor</code>s and, if necessary, ! * posts notifications on <code>FlavorEvent</code>s to the * AppContexts' EDTs. ! * The parameter <code>formats</code> is null iff we have just * failed to get formats available on the clipboard. * * @param formats data formats that have just been retrieved from * this clipboard */ --- 403,416 ---- protected abstract void registerClipboardViewerChecked(); protected abstract void unregisterClipboardViewerChecked(); /** ! * Checks change of the {@code DataFlavor}s and, if necessary, ! * posts notifications on {@code FlavorEvent}s to the * AppContexts' EDTs. ! * The parameter {@code formats} is null iff we have just * failed to get formats available on the clipboard. * * @param formats data formats that have just been retrieved from * this clipboard */
< prev index next >