Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 20. Operating System Integration... > Use Deferred Rendering with Clipboar...

recipe 20.3. Use Deferred Rendering with Clipboard Data

20.3.1. Problem

You have large or computationally expensive data on the clipboard that you want to be processed or rendered when the user pastes data instead of when the user copies it.

20.3.2. Solution

Use the setDataHandler() method, which doesn’t store the actual data in the clipboard but rather references a method for rendering the data.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial