Skip to main content



      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 07:31 Go to next message
Eclipse UserFriend
 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 01:03 Go to previous messageGo to next message
Eclipse UserFriend
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 06:03 Go to previous message
Eclipse UserFriend
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 06:05] by 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: Wed Jul 16 02:13:13 EDT 2025

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

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

Back to the top