However in a browser you can't access the clipboard directly, so it's tricky to make clipboard implementation in FWT works both for SWT and JavaScript.
sarnoldMon 5 Sep 2011
OK, I will try using the SWT dnd API.
Thanks
sarnoldMon 5 Sep 2011
Well, after trying using SWT, I need a way to get swt's Display object in my FWT application.
Otherwise, it would be nice to have "onCopy", "onCut" and "onPaste" events for some widgets, that way I think it is possible with the browser.
But if I can get the Display object, I would be very happy too.
Regards
sarnoldMon 5 Sep 2011
OK, I managed copy'n paste with a hidden Text widget.
Thanks for the answer.
Regards
brianMon 12 Sep 2011
I added a proper Clipboard API. For now it just supported plaintext and doesn't get into MIME encoded clipboard data, images, etc; changeset
This API will only work in SWT, JS doesn't have access to the clipboard.
sarnold Mon 5 Sep 2011
Hello,
How do we access the clipboard with FWT? Is there any API?
Thanks for your answer,
Regards
Yuri Strot Mon 5 Sep 2011
Unfortunately there is no such API. As a workaround you can use fwt::TextWidget.copy and fwt::TextWidget.paste.
However in a browser you can't access the clipboard directly, so it's tricky to make clipboard implementation in FWT works both for SWT and JavaScript.
sarnold Mon 5 Sep 2011
OK, I will try using the SWT dnd API.
Thanks
sarnold Mon 5 Sep 2011
Well, after trying using SWT, I need a way to get swt's Display object in my FWT application.
Otherwise, it would be nice to have "onCopy", "onCut" and "onPaste" events for some widgets, that way I think it is possible with the browser.
But if I can get the Display object, I would be very happy too.
Regards
sarnold Mon 5 Sep 2011
OK, I managed copy'n paste with a hidden Text widget.
Thanks for the answer.
Regards
brian Mon 12 Sep 2011
I added a proper Clipboard API. For now it just supported plaintext and doesn't get into MIME encoded clipboard data, images, etc; changeset
This API will only work in SWT, JS doesn't have access to the clipboard.