Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » why column header can not fully copied(can not fully copy nattable's column header)
why column header can not fully copied [message #1778264] Tue, 12 December 2017 12:31 Go to next message
chun liang Wen is currently offline chun liang WenFriend
Messages: 10
Registered: December 2017
Junior Member
 CopyDataCommandHandler copyHandler = new CopyDataCommandHandler(selectionLayer, columnHeaderDataLayer, rowHeaderDataLayer);
        natTable.registerCommandHandler(copyHandler);

        natTable.doCommand(new CopyDataToClipboardCommand("\t", //$NON-NLS-1$
                System.getProperty("line.separator"), //$NON-NLS-1$
                natTable.getConfigRegistry()));


if selectionLayer.selectAll() , all of row data can be copied. but only part of column header copied. How to fix this? Is this a defect of nattable?
Re: why column header can not fully copied [message #1778319 is a reply to message #1778264] Wed, 13 December 2017 06:03 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
If I look at our _751_CopyExample this is working pretty good. Even if I make the window smaller to enable scrolling.

So without additional information I can't say anything as the given information is too abstract.

Please note that a simple "it does not work, how can I fix this or is this a bug" without saying explicitly what is not working by giving an example with some more code related to your composition is not enough!
Re: why column header can not fully copied [message #1778653 is a reply to message #1778319] Tue, 19 December 2017 11:03 Go to previous message
chun liang Wen is currently offline chun liang WenFriend
Messages: 10
Registered: December 2017
Junior Member
The root cause is that second parameter passed should be a DataLayer named as columnHeaderDataLayer, but be wrongly written as a ColumnHeaderLayer which named as columnHeaderLayer.

Thanks for you reply.

[Updated on: Tue, 19 December 2017 11:05]

Report message to a moderator

Previous Topic:handle page up/down events in nattable
Next Topic:Is that possible select a cell in a FixedSummaryRowLayer and copy it?
Goto Forum:
  


Current Time: Tue Sep 25 14:56:48 GMT 2018

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

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

Back to the top