Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Copy the text from Non Editable Cell(Copy the text from Non Editable Cell)
Copy the text from Non Editable Cell [message #1632587] Tue, 24 February 2015 11:06 Go to next message
ambuj bhargava is currently offline ambuj bhargavaFriend
Messages: 19
Registered: July 2014
Junior Member
Hi

I need the following functionality in my nattable implementation

Copy the text from Non Editable Cell of Nat Table

Can you please suggest, how to achieve it ?


Regards
Ambuj
Re: Copy the text from Non Editable Cell [message #1632708 is a reply to message #1632587] Tue, 24 February 2015 12:37 Go to previous messageGo to next message
Arye Shemesh is currently offline Arye ShemeshFriend
Messages: 37
Registered: November 2012
Member
Hi Ambuj ,

Do you mean programmatically or by user action?

Take a look at org.eclipse.nebula.widgets.nattable.copy.action.CopyDataAction:

natTable.doCommand(new CopyDataToClipboardCommand("\t", System.getProperty("line.separator"), natTable.getConfigRegistry()));


You can create a menu item with this code for user request copy.

Hope it helps,
Arye
Re: Copy the text from Non Editable Cell [message #1637131 is a reply to message #1632708] Thu, 26 February 2015 15:01 Go to previous messageGo to next message
ambuj bhargava is currently offline ambuj bhargavaFriend
Messages: 19
Registered: July 2014
Junior Member
Thanks for the reply. I need to know, if there are any sample code which copies the text from non editable cell


Regards
Ambuj
Re: Copy the text from Non Editable Cell [message #1637139 is a reply to message #1637131] Thu, 26 February 2015 15:09 Go to previous messageGo to next message
Arye Shemesh is currently offline Arye ShemeshFriend
Messages: 37
Registered: November 2012
Member
Hi Ambuj,

Can you describe the problem better? What is the scenario? What inputs do you have?
Re: Copy the text from Non Editable Cell [message #1637151 is a reply to message #1637139] Thu, 26 February 2015 15:15 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
NatTable Examples Application -> Tutorial Examples -> Additional Functions -> CopyExample
Re: Copy the text from Non Editable Cell [message #1644803 is a reply to message #1637139] Mon, 02 March 2015 07:15 Go to previous messageGo to next message
ambuj bhargava is currently offline ambuj bhargavaFriend
Messages: 19
Registered: July 2014
Junior Member
Thank you

The solution worked for me.


Regards
Ambuj
Re: Copy the text from Non Editable Cell [message #1644806 is a reply to message #1632708] Mon, 02 March 2015 07:16 Go to previous message
ambuj bhargava is currently offline ambuj bhargavaFriend
Messages: 19
Registered: July 2014
Junior Member
Arye Shemesh wrote on Tue, 24 February 2015 07:37
Hi Ambuj ,

Do you mean programmatically or by user action?

Take a look at org.eclipse.nebula.widgets.nattable.copy.action.CopyDataAction:

natTable.doCommand(new CopyDataToClipboardCommand("\t", System.getProperty("line.separator"), natTable.getConfigRegistry()));


You can create a menu item with this code for user request copy.

Hope it helps,
Arye



Thanks Arye...it worked
Previous Topic:Creating structure in Tree
Next Topic:Nattable Tree Structure
Goto Forum:
  


Current Time: Thu Apr 18 23:36:48 GMT 2024

Powered by FUDForum. Page generated in 0.03043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top