Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4287795

Would like Clipboard.isDataFlavorSupported() method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.2.2
    • client-libs
    • tiger
    • generic
    • generic



      Name: krT82822 Date: 11/03/99


      java version "1.2.2"
      HotSpot VM (1.0.1, mixed mode, build c)
      Currently, to see if the Paste menu item in a Java application should be
      enabled, you must do Clipboard.getContents(), and if it doesn't return null,
      see if the returned Transferable has a compatible datatype by calling
      Transferable.isDataFlavorSupported(). However, getContents() can take a while
      if the clipboard contents is large (e.g. many pages of text).

      It isn't actually necessary to retrieve the contents of the clipboard to enable
      the menu item, only to see if the clipboard contains appropriate data. A method
      Clipboard.isDataFlavorSupported() would be very helpful if it were faster than
      Clipboard.getContents().
      (Review ID: 97424)
      ======================================================================

            agerasimsunw Alexander Gerasimov (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: