Search in sources :

Example 1 with DataTransfer

use of com.gargoylesoftware.htmlunit.javascript.host.html.DataTransfer in project htmlunit by HtmlUnit.

the class HTMLCollectionFrames method getClipboardData.

/**
 * Returns the JavaScript property {@code clipboardData}.
 * @return the {@link DataTransfer}
 */
@JsxGetter(IE)
public DataTransfer getClipboardData() {
    final DataTransfer dataTransfer = new DataTransfer();
    dataTransfer.setParentScope(this);
    dataTransfer.setPrototype(getPrototype(dataTransfer.getClass()));
    return dataTransfer;
}
Also used : DataTransfer(com.gargoylesoftware.htmlunit.javascript.host.html.DataTransfer) JsxGetter(com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter)

Aggregations

JsxGetter (com.gargoylesoftware.htmlunit.javascript.configuration.JsxGetter)1 DataTransfer (com.gargoylesoftware.htmlunit.javascript.host.html.DataTransfer)1