javax.swing.text
Class DefaultCaret.ClipboardHandler

java.lang.Object
  extended byjavax.swing.text.DefaultCaret.ClipboardHandler
All Implemented Interfaces:
ClipboardOwner
Enclosing class:
DefaultCaret

private class DefaultCaret.ClipboardHandler
extends Object
implements ClipboardOwner

ClipboardOwner that will toggle the visibility of the selection when ownership is lost.


Constructor Summary
private DefaultCaret.ClipboardHandler()
           
 
Method Summary
 void lostOwnership(Clipboard clipboard, Transferable contents)
          Notifies this object that it is no longer the clipboard owner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCaret.ClipboardHandler

private DefaultCaret.ClipboardHandler()
Method Detail

lostOwnership

public void lostOwnership(Clipboard clipboard,
                          Transferable contents)
Description copied from interface: ClipboardOwner
Notifies this object that it is no longer the clipboard owner. This method will be called when another application or another object within this application asserts ownership of the clipboard.

Specified by:
lostOwnership in interface ClipboardOwner
Parameters:
clipboard - the clipboard that is no longer owned
contents - the contents which this owner had placed on the clipboard