Liking cljdoc? Tell your friends :D

jdk.awt.datatransfer.StringSelection

A Transferable which implements the capability required to transfer a String.

This Transferable properly supports DataFlavor.stringFlavor and all equivalent flavors. Support for DataFlavor.plainTextFlavor and all equivalent flavors is deprecated. No other DataFlavors are supported.

A Transferable which implements the capability required
to transfer a String.

This Transferable properly supports
DataFlavor.stringFlavor
and all equivalent flavors. Support for
DataFlavor.plainTextFlavor
and all equivalent flavors is deprecated. No other
DataFlavors are supported.
raw docstring

->string-selectionclj

(->string-selection data)

Constructor.

Creates a Transferable capable of transferring the specified String.

data - java.lang.String

Constructor.

Creates a Transferable capable of transferring
 the specified String.

data - `java.lang.String`
raw docstring

data-flavor-supported?clj

(data-flavor-supported? this flavor)

Returns whether the requested flavor is supported by this Transferable.

flavor - the requested flavor for the data - java.awt.datatransfer.DataFlavor

returns: true if flavor is equal to DataFlavor.stringFlavor or DataFlavor.plainTextFlavor; false if flavor is not one of the above flavors - boolean

throws: java.lang.NullPointerException - if flavor is null

Returns whether the requested flavor is supported by this
 Transferable.

flavor - the requested flavor for the data - `java.awt.datatransfer.DataFlavor`

returns: true if flavor is equal to
   DataFlavor.stringFlavor or
   DataFlavor.plainTextFlavor; false if flavor
   is not one of the above flavors - `boolean`

throws: java.lang.NullPointerException - if flavor is null
raw docstring

get-transfer-dataclj

(get-transfer-data this flavor)

Returns the Transferable's data in the requested DataFlavor if possible. If the desired flavor is DataFlavor.stringFlavor, or an equivalent flavor, the String representing the selection is returned. If the desired flavor is DataFlavor.plainTextFlavor, or an equivalent flavor, a Reader is returned. Note: The behavior of this method for DataFlavor.plainTextFlavor and equivalent DataFlavors is inconsistent with the definition of DataFlavor.plainTextFlavor.

flavor - the requested flavor for the data - java.awt.datatransfer.DataFlavor

returns: the data in the requested flavor, as outlined above - java.lang.Object

throws: java.awt.datatransfer.UnsupportedFlavorException - if the requested data flavor is not equivalent to either DataFlavor.stringFlavor or DataFlavor.plainTextFlavor

Returns the Transferable's data in the requested
 DataFlavor if possible. If the desired flavor is
 DataFlavor.stringFlavor, or an equivalent flavor,
 the String representing the selection is
 returned. If the desired flavor is
 DataFlavor.plainTextFlavor,
 or an equivalent flavor, a Reader is returned.
 Note: The behavior of this method for
 DataFlavor.plainTextFlavor
 and equivalent DataFlavors is inconsistent with the
 definition of DataFlavor.plainTextFlavor.

flavor - the requested flavor for the data - `java.awt.datatransfer.DataFlavor`

returns: the data in the requested flavor, as outlined above - `java.lang.Object`

throws: java.awt.datatransfer.UnsupportedFlavorException - if the requested data flavor is not equivalent to either DataFlavor.stringFlavor or DataFlavor.plainTextFlavor
raw docstring

get-transfer-data-flavorsclj

(get-transfer-data-flavors this)

Returns an array of flavors in which this Transferable can provide the data. DataFlavor.stringFlavor is properly supported. Support for DataFlavor.plainTextFlavor is deprecated.

returns: an array of length two, whose elements are DataFlavor. stringFlavor and DataFlavor.plainTextFlavor - java.awt.datatransfer.DataFlavor[]

Returns an array of flavors in which this Transferable
 can provide the data. DataFlavor.stringFlavor
 is properly supported.
 Support for DataFlavor.plainTextFlavor is
 deprecated.

returns: an array of length two, whose elements are DataFlavor.
         stringFlavor and DataFlavor.plainTextFlavor - `java.awt.datatransfer.DataFlavor[]`
raw docstring

lost-ownershipclj

(lost-ownership this clipboard contents)

Description copied from interface: ClipboardOwner

clipboard - the clipboard that is no longer owned - java.awt.datatransfer.Clipboard contents - the contents which this owner had placed on the clipboard - java.awt.datatransfer.Transferable

Description copied from interface: ClipboardOwner

clipboard - the clipboard that is no longer owned - `java.awt.datatransfer.Clipboard`
contents - the contents which this owner had placed on the clipboard - `java.awt.datatransfer.Transferable`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close