<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_77) on Fri Apr 22 13:46:52 UTC 2016 --> <title>ClipboardContent (JavaFX 8)</title> <meta name="date" content="2016-04-22"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="ClipboardContent (JavaFX 8)"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/ClipboardContent.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">JavaFX 8</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../javafx/scene/input/Clipboard.html" title="class in javafx.scene.input"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../javafx/scene/input/ContextMenuEvent.html" title="class in javafx.scene.input"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?javafx/scene/input/ClipboardContent.html" target="_top">Frames</a></li> <li><a href="ClipboardContent.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li><a href="#nested.classes.inherited.from.class.java.util.AbstractMap">Nested</a> | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">javafx.scene.input</div> <h2 title="Class ClipboardContent" class="title">Class ClipboardContent</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li><a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">java.util.AbstractMap</a><K,V></li> <li> <ul class="inheritance"> <li><a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">java.util.HashMap</a><<a href="../../../javafx/scene/input/DataFormat.html" title="class in javafx.scene.input">DataFormat</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></li> <li> <ul class="inheritance"> <li>javafx.scene.input.ClipboardContent</li> </ul> </li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="../../../javafx/scene/input/DataFormat.html" title="class in javafx.scene.input">DataFormat</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></dd> </dl> <hr> <br> <pre>public class <span class="typeNameLabel">ClipboardContent</span> extends <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a><<a href="../../../javafx/scene/input/DataFormat.html" title="class in javafx.scene.input">DataFormat</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>></pre> <div class="block">Data container for <a href="../../../javafx/scene/input/Clipboard.html" title="class in javafx.scene.input"><code>Clipboard</code></a> data. It can hold multiple data in several data formats.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>JavaFX 2.0</dd> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../serialized-form.html#javafx.scene.input.ClipboardContent">Serialized Form</a></dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested.class.summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <ul class="blockList"> <li class="blockList"><a name="nested.classes.inherited.from.class.java.util.AbstractMap"> <!-- --> </a> <h3>Nested classes/interfaces inherited from class java.util.<a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleEntry</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleEntry.html?is-external=true" title="class or interface in java.util">V</a>>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">AbstractMap.SimpleImmutableEntry</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.SimpleImmutableEntry.html?is-external=true" title="class or interface in java.util">V</a>></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="nested.classes.inherited.from.class.java.util.Map"> <!-- --> </a> <h3>Nested classes/interfaces inherited from interface java.util.<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">K</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">V</a>></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#ClipboardContent--">ClipboardContent</a></span>()</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#getFiles--">getFiles</a></span>()</code> <div class="block">Gets the List of Files from the <code>ClipboardContent</code> which had previously been put.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#getHtml--">getHtml</a></span>()</code> <div class="block">Gets the HTML String from the <code>ClipboardContent</code> which had previously been put.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../javafx/scene/image/Image.html" title="class in javafx.scene.image">Image</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#getImage--">getImage</a></span>()</code> <div class="block">Gets the Image from the <code>ClipboardContent</code> which had previously been put.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#getRtf--">getRtf</a></span>()</code> <div class="block">Gets the RTF String from the <code>ClipboardContent</code> which had previously been put.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#getString--">getString</a></span>()</code> <div class="block">Gets the plain text String from the <code>ClipboardContent</code> which had previously been put.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#getUrl--">getUrl</a></span>()</code> <div class="block">Gets the URL String from the <code>ClipboardContent</code> which had previously been put.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#hasFiles--">hasFiles</a></span>()</code> <div class="block">Gets whether a List of Files (<code>DataFormat.FILES</code>) has been put to this <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#hasHtml--">hasHtml</a></span>()</code> <div class="block">Gets whether an HTML String (<code>DataFormat.HTML</code>) has been put to this <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#hasImage--">hasImage</a></span>()</code> <div class="block">Gets whether an Image (<code>DataFormat.IMAGE</code>) has been put to this <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#hasRtf--">hasRtf</a></span>()</code> <div class="block">Gets whether a RTF String (<code>DataFormat.RTF</code>) has been put to this <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#hasString--">hasString</a></span>()</code> <div class="block">Gets whether a plain text String (<code>DataFormat.PLAIN_TEXT</code>) has been put to this <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#hasUrl--">hasUrl</a></span>()</code> <div class="block">Gets whether a URL String (<code>DataFormat.URL</code>) has been put to this <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putFiles-java.util.List-">putFiles</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>> files)</code> <div class="block">Puts a List of Files into the <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putFilesByPath-java.util.List-">putFilesByPath</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> filePaths)</code> <div class="block">Puts a List of Files into the <code>ClipboardContent</code>, based on the file path.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putHtml-java.lang.String-">putHtml</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> html)</code> <div class="block">Puts an HTML String into the <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putImage-javafx.scene.image.Image-">putImage</a></span>(<a href="../../../javafx/scene/image/Image.html" title="class in javafx.scene.image">Image</a> i)</code> <div class="block">Puts an Image into the <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putRtf-java.lang.String-">putRtf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rtf)</code> <div class="block">Puts a RTF String into the <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putString-java.lang.String-">putString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</code> <div class="block">Puts a plain text String into the <code>ClipboardContent</code>.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/scene/input/ClipboardContent.html#putUrl-java.lang.String-">putUrl</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> url)</code> <div class="block">Puts a URL String into the <code>ClipboardContent</code>.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.util.HashMap"> <!-- --> </a> <h3>Methods inherited from class java.util.<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#clear--" title="class or interface in java.util">clear</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#clone--" title="class or interface in java.util">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#compute-K-java.util.function.BiFunction-" title="class or interface in java.util">compute</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#computeIfAbsent-K-java.util.function.Function-" title="class or interface in java.util">computeIfAbsent</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#computeIfPresent-K-java.util.function.BiFunction-" title="class or interface in java.util">computeIfPresent</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#containsKey-java.lang.Object-" title="class or interface in java.util">containsKey</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#containsValue-java.lang.Object-" title="class or interface in java.util">containsValue</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#entrySet--" title="class or interface in java.util">entrySet</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#forEach-java.util.function.BiConsumer-" title="class or interface in java.util">forEach</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util">get</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#getOrDefault-java.lang.Object-V-" title="class or interface in java.util">getOrDefault</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#isEmpty--" title="class or interface in java.util">isEmpty</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#keySet--" title="class or interface in java.util">keySet</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#merge-K-V-java.util.function.BiFunction-" title="class or interface in java.util">merge</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#put-K-V-" title="class or interface in java.util">put</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#putAll-java.util.Map-" title="class or interface in java.util">putAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#putIfAbsent-K-V-" title="class or interface in java.util">putIfAbsent</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#remove-java.lang.Object-" title="class or interface in java.util">remove</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#remove-java.lang.Object-java.lang.Object-" title="class or interface in java.util">remove</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#replace-K-V-" title="class or interface in java.util">replace</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#replace-K-V-V-" title="class or interface in java.util">replace</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#replaceAll-java.util.function.BiFunction-" title="class or interface in java.util">replaceAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#size--" title="class or interface in java.util">size</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html?is-external=true#values--" title="class or interface in java.util">values</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.util.AbstractMap"> <!-- --> </a> <h3>Methods inherited from class java.util.<a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true" title="class or interface in java.util">AbstractMap</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.util">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true#hashCode--" title="class or interface in java.util">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/AbstractMap.html?is-external=true#toString--" title="class or interface in java.util">toString</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.util.Map"> <!-- --> </a> <h3>Methods inherited from interface java.util.<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.util">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true#hashCode--" title="class or interface in java.util">hashCode</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="ClipboardContent--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>ClipboardContent</h4> <pre>public ClipboardContent()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="hasString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasString</h4> <pre>public final boolean hasString()</pre> <div class="block">Gets whether a plain text String (<code>DataFormat.PLAIN_TEXT</code>) has been put to this <code>ClipboardContent</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if <code>containsKey(DataFormat.PLAIN_TEXT)</code> returns true, false otherwise</dd> </dl> </li> </ul> <a name="putString-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putString</h4> <pre>public final boolean putString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</pre> <div class="block">Puts a plain text String into the <code>ClipboardContent</code>. This is equivalent to invoking <code>put(DataFormat.PLAIN_TEXT, s)</code>. Setting this value to null effectively clears it from the <code>ClipboardContent</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>s</code> - The string to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the string is always successfully put)</dd> </dl> </li> </ul> <a name="getString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getString</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getString()</pre> <div class="block">Gets the plain text String from the <code>ClipboardContent</code> which had previously been put. This is equivalent to invoking <code>get(DataFormat.PLAIN_TEXT)</code>. If no such entry exists, null is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The String in the <code>ClipboardContent</code> associated with <code>DataFormat.PLAIN_TEXT</code>, or null if there is not one.</dd> </dl> </li> </ul> <a name="hasUrl--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasUrl</h4> <pre>public final boolean hasUrl()</pre> <div class="block">Gets whether a URL String (<code>DataFormat.URL</code>) has been put to this <code>ClipboardContent</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if <code>containsKey(DataFormat.URL)</code> returns true, false otherwise</dd> </dl> </li> </ul> <a name="putUrl-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putUrl</h4> <pre>public final boolean putUrl(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> url)</pre> <div class="block">Puts a URL String into the <code>ClipboardContent</code>. This is equivalent to invoking <code>put(DataFormat.URL, url)</code>. Setting this value to null effectively clears it from the <code>ClipboardContent</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>url</code> - The string to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the URL is always successfully put)</dd> </dl> </li> </ul> <a name="getUrl--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getUrl</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getUrl()</pre> <div class="block">Gets the URL String from the <code>ClipboardContent</code> which had previously been put. This is equivalent to invoking <code>get(DataFormat.URL)</code>. If no such entry exists, null is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The String in the <code>ClipboardContent</code> associated with <code>DataFormat.URL</code>, or null if there is not one.</dd> </dl> </li> </ul> <a name="hasHtml--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasHtml</h4> <pre>public final boolean hasHtml()</pre> <div class="block">Gets whether an HTML String (<code>DataFormat.HTML</code>) has been put to this <code>ClipboardContent</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if <code>containsKey(DataFormat.HTML)</code> returns true, false otherwise</dd> </dl> </li> </ul> <a name="putHtml-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putHtml</h4> <pre>public final boolean putHtml(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> html)</pre> <div class="block">Puts an HTML String into the <code>ClipboardContent</code>. This is equivalent to invoking <code>put(DataFormat.HTML, html)</code>. Setting this value to null effectively clears it from the <code>ClipboardContent</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>html</code> - The string to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the HTML is always successfully put)</dd> </dl> </li> </ul> <a name="getHtml--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getHtml</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getHtml()</pre> <div class="block">Gets the HTML String from the <code>ClipboardContent</code> which had previously been put. This is equivalent to invoking <code>get(DataFormat.HTML)</code>. If no such entry exists, null is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The String in the <code>ClipboardContent</code> associated with <code>DataFormat.HTML</code>, or null if there is not one.</dd> </dl> </li> </ul> <a name="hasRtf--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasRtf</h4> <pre>public final boolean hasRtf()</pre> <div class="block">Gets whether a RTF String (<code>DataFormat.RTF</code>) has been put to this <code>ClipboardContent</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if <code>containsKey(DataFormat.RTF)</code> returns true, false otherwise</dd> </dl> </li> </ul> <a name="putRtf-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putRtf</h4> <pre>public final boolean putRtf(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> rtf)</pre> <div class="block">Puts a RTF String into the <code>ClipboardContent</code>. This is equivalent to invoking <code>put(DataFormat.RTF, rtf)</code>. Setting this value to null effectively clears it from the <code>ClipboardContent</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>rtf</code> - The string to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the RTF is always successfully put)</dd> </dl> </li> </ul> <a name="getRtf--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getRtf</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getRtf()</pre> <div class="block">Gets the RTF String from the <code>ClipboardContent</code> which had previously been put. This is equivalent to invoking <code>get(DataFormat.RTF)</code>. If no such entry exists, null is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The String in the <code>ClipboardContent</code> associated with <code>DataFormat.RTF</code>, or null if there is not one.</dd> </dl> </li> </ul> <a name="hasImage--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasImage</h4> <pre>public final boolean hasImage()</pre> <div class="block">Gets whether an Image (<code>DataFormat.IMAGE</code>) has been put to this <code>ClipboardContent</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if <code>containsKey(DataFormat.IMAGE)</code> returns true, false otherwise</dd> </dl> </li> </ul> <a name="putImage-javafx.scene.image.Image-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putImage</h4> <pre>public final boolean putImage(<a href="../../../javafx/scene/image/Image.html" title="class in javafx.scene.image">Image</a> i)</pre> <div class="block">Puts an Image into the <code>ClipboardContent</code>. This is equivalent to invoking <code>put(DataFormat.IMAGE, i)</code>. Setting this value to null effectively clears it from the <code>ClipboardContent</code>. When an image is placed on the clipboard in this manner, an operating system dependent image is loaded onto the clipboard (such as TIFF on Mac or DIB on Windows).</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>i</code> - The image to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the image is always successfully put)</dd> </dl> </li> </ul> <a name="getImage--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getImage</h4> <pre>public final <a href="../../../javafx/scene/image/Image.html" title="class in javafx.scene.image">Image</a> getImage()</pre> <div class="block">Gets the Image from the <code>ClipboardContent</code> which had previously been put. This is equivalent to invoking <code>get(DataFormat.IMAGE)</code>. If no such entry exists, null is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The Image in the <code>ClipboardContent</code> associated with <code>DataFormat.IMAGE</code>, or null if there is not one.</dd> </dl> </li> </ul> <a name="hasFiles--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasFiles</h4> <pre>public final boolean hasFiles()</pre> <div class="block">Gets whether a List of Files (<code>DataFormat.FILES</code>) has been put to this <code>ClipboardContent</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if <code>containsKey(DataFormat.FILES)</code> returns true, false otherwise</dd> </dl> </li> </ul> <a name="putFiles-java.util.List-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putFiles</h4> <pre>public final boolean putFiles(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>> files)</pre> <div class="block">Puts a List of Files into the <code>ClipboardContent</code>. This is equivalent to invoking <code>put(DataFormat.FILES, files)</code>. Setting this value to null effectively clears it from the <code>ClipboardContent</code>.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>files</code> - The files to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the files are always successfully put)</dd> </dl> </li> </ul> <a name="putFilesByPath-java.util.List-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putFilesByPath</h4> <pre>public final boolean putFilesByPath(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> filePaths)</pre> <div class="block">Puts a List of Files into the <code>ClipboardContent</code>, based on the file path. This is simply a convenience method which constructs a List of Files and invokes the <a href="../../../javafx/scene/input/ClipboardContent.html#putFiles-java.util.List-"><code>putFiles(java.util.List<java.io.File>)</code></a> method.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>filePaths</code> - The files to place. This may be null.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>always true (the files are always successfully put)</dd> </dl> </li> </ul> <a name="getFiles--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getFiles</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>> getFiles()</pre> <div class="block">Gets the List of Files from the <code>ClipboardContent</code> which had previously been put. This is equivalent to invoking <code>get(DataFormat.FILES)</code>. If no such entry exists, null is returned.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>The List of Files in the <code>ClipboardContent</code> associated with <code>DataFormat.FILES</code>, or null if there is not one.</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/ClipboardContent.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">JavaFX 8</div> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../javafx/scene/input/Clipboard.html" title="class in javafx.scene.input"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../javafx/scene/input/ContextMenuEvent.html" title="class in javafx.scene.input"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?javafx/scene/input/ClipboardContent.html" target="_top">Frames</a></li> <li><a href="ClipboardContent.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li><a href="#nested.classes.inherited.from.class.java.util.AbstractMap">Nested</a> | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small><small><a href="https://docs.oracle.com/javase/8/docs/legal/cpyr.html">Copyright</a> (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.</small></small></p> </body> </html>