Dart API Referencedart:htmlClipboard

Clipboard Interface

widget/public/nsIClipboard.idlScriptable
This interface supports basic clipboard operations such as: setting, retrieving, emptying, matching and supporting clipboard data.
Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

Methods

Code void clearData([String type]) #

void clearData([String type]);

Code String getData(String type) #

This method retrieves data from the clipboard into a transferable.

Parameters
aTransferable
The transferable to receive data from the clipboard.
aWhichClipboard
Specifies the clipboard to which this operation applies.
String getData(String type);

Code bool setData(String type, String data) #

This method sets the data from a transferable on the native clipboard.

Parameters
aTransferable
The transferable containing the data to put on the clipboard.
anOwner
The owner of the transferable.
aWhichClipboard
Specifies the clipboard to which this operation applies.
bool setData(String type, String data);

Code void setDragImage(ImageElement image, int x, int y) #

void setDragImage(ImageElement image, int x, int y);

Fields

Code String dropEffect #

String dropEffect;

Code String effectAllowed #

String effectAllowed;

Code final FileList files #

final FileList files;

Code final DataTransferItemList items #

final DataTransferItemList items;

Code final List types #

final List types;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.