Clipboard data. It can hold multiple data in
several data formats.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final List | Returns: The List of Files in theClipboardContent associated
with DataFormat.FILES, or null if there is not one.Gets the List of Files from the |
| public final String | Returns: The String in theClipboardContent associated
with DataFormat.HTML, or null if there is not one.Gets the HTML String from the |
| public final Image | Returns: The Image in theClipboardContent associated
with DataFormat.IMAGE, or null if there is not one.Gets the Image from the |
| public final String | Returns: The String in theClipboardContent associated
with DataFormat.RTF, or null if there is not one.Gets the RTF String from the |
| public final String | Returns: The String in theClipboardContent associated
with DataFormat.PLAIN_TEXT, or null if there is not one.Gets the plain text String from the |
| public final String | Returns: The String in theClipboardContent associated
with DataFormat.URL, or null if there is not one.Gets the URL String from the |
| public final boolean | Returns: true ifcontainsKey(DataFormat.FILES)
returns true, false otherwiseGets whether a List of Files ( |
| public final boolean | Returns: true ifcontainsKey(DataFormat.HTML)
returns true, false otherwiseGets whether an HTML String ( |
| public final boolean | Returns: true ifcontainsKey(DataFormat.IMAGE)
returns true, false otherwiseGets whether an Image ( |
| public final boolean | Returns: true ifcontainsKey(DataFormat.RTF)
returns true, false otherwiseGets whether a RTF String ( |
| public final boolean | Returns: true ifcontainsKey(DataFormat.PLAIN_TEXT)
returns true, false otherwiseGets whether a plain text String ( |
| public final boolean | Returns: true ifcontainsKey(DataFormat.URL)
returns true, false otherwiseGets whether a URL String ( |
| public final boolean | |
| public final boolean | Returns: always true (the files are always successfully put)The files to place. This may be null. filePaths)Puts a List of Files into the |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean |
| ClipboardContent | back to summary |
|---|---|
| public ClipboardContent() Creates a | |
| getFiles | back to summary |
|---|---|
| public final List Gets the List of Files from the | |
| getHtml | back to summary |
|---|---|
| public final String getHtml() Gets the HTML String from the
| |
| getImage | back to summary |
|---|---|
| public final Image getImage() Gets the Image from the
| |
| getRtf | back to summary |
|---|---|
| public final String getRtf() Gets the RTF String from the
| |
| getString | back to summary |
|---|---|
| public final String getString() Gets the plain text String from the
| |
| getUrl | back to summary |
|---|---|
| public final String getUrl() Gets the URL String from the
| |
| hasFiles | back to summary |
|---|---|
| public final boolean hasFiles() Gets whether a List of Files (
| |
| hasHtml | back to summary |
|---|---|
| public final boolean hasHtml() Gets whether an HTML String (
| |
| hasImage | back to summary |
|---|---|
| public final boolean hasImage() Gets whether an Image (
| |
| hasRtf | back to summary |
|---|---|
| public final boolean hasRtf() Gets whether a RTF String (
| |
| hasString | back to summary |
|---|---|
| public final boolean hasString() Gets whether a plain text String (
| |
| hasUrl | back to summary |
|---|---|
| public final boolean hasUrl() Gets whether a URL String (
| |
| putFiles | back to summary |
|---|---|
| public final boolean putFiles(List<File> files) Puts a List of Files into the | |
| putFilesByPath | back to summary |
|---|---|
| public final boolean putFilesByPath(List<String> filePaths) Puts a List of Files into the | |
| putHtml | back to summary |
|---|---|
| public final boolean putHtml(String html) Puts an HTML String into the
| |
| putImage | back to summary |
|---|---|
| public final boolean putImage(Image i) Puts an Image into the
| |
| putRtf | back to summary |
|---|---|
| public final boolean putRtf(String rtf) Puts a RTF String into the
| |
| putString | back to summary |
|---|---|
| public final boolean putString(String s) Puts a plain text String into the
| |
| putUrl | back to summary |
|---|---|
| public final boolean putUrl(String url) Puts a URL String into the
| |