Supporting Multiple Data type entries in Clipboard [message #1072375] |
Mon, 22 July 2013 16:23 |
saurav sarkar Messages: 428 Registered: July 2009 |
Senior Member |
|
|
Hi All,
Following is my requirement.
I want to transfer two different strings to be later retrieved for some specific purpose in two different occasions.
For e.g.
String str="a" ;
String str1="b";
Now i want to pass both them through the same clipboard action
in that case i have to do clipboard.setContents( new String[] {str,str1},new Transfer[] {TextTransfer.getInstance(),TextTransfer.getInstance()};
When retrieving through getContents() with type as TextTransfer always the first String is returned. I want to retrieve both of them separately at different occasions.
Is it possible to achieve this through Clipboard ?
I might be missing something
cheers,
Saurav
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
|
|
|
Powered by
FUDForum. Page generated in 0.03045 seconds