public interface HasIOSClipboard extends HasClipboard
Modifier and Type | Method and Description |
---|---|
default java.awt.image.BufferedImage |
getClipboardImage()
Get an image from the clipboard.
|
default java.net.URL |
getClipboardUrl()
Get an URL from the clipboard.
|
default void |
setClipboardImage(java.awt.image.BufferedImage img)
Set an image to the clipboard.
|
default void |
setClipboardUrl(java.net.URL url)
Set an URL to the clipboard.
|
getClipboard, getClipboardText, setClipboard, setClipboardText
execute, execute
default void setClipboardImage(java.awt.image.BufferedImage img) throws java.io.IOException
img
- the actual image to be set.java.io.IOException
- if the image cannot be decoded in PNG representationdefault java.awt.image.BufferedImage getClipboardImage() throws java.io.IOException
java.io.IOException
- If the returned image cannot be decoded or if the clipboard is empty.default void setClipboardUrl(java.net.URL url)
url
- the actual URL to set.default java.net.URL getClipboardUrl() throws java.net.MalformedURLException
java.net.MalformedURLException
- if the URL in the clipboard is not valid or if the clipboard is empty.