Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Is that possible select a cell in a FixedSummaryRowLayer and copy it?(copy selected cells in FixedSummaryRowLayer )
Is that possible select a cell in a FixedSummaryRowLayer and copy it? [message #1778654] Tue, 19 December 2017 11:18 Go to next message
chun liang Wen is currently offline chun liang WenFriend
Messages: 10
Registered: December 2017
Junior Member
...
 viewportLayer.setRegionName(GridRegion.BODY);

        FixedSummaryRowLayer summaryRowLayer = new FixedSummaryRowLayer(bodyDataLayer, viewportLayer, configRegistry, false);
        summaryRowLayer.setHorizontalCompositeDependency(false);

        IDataProvider columnHeaderDataProvider = new DetailedCostColumnHeaderDataProvider();
        DataLayer columnHeaderDataLayer = new DataLayer(columnHeaderDataProvider);

        ColumnHeaderLayer columnHeaderLayer = new ColumnHeaderLayer(columnHeaderDataLayer, viewportLayer, selectionLayer);

        CompositeLayer childComposite = new CompositeLayer(1, 2);
        childComposite.setChildLayer("SUMMARY", summaryRowLayer, 0, 0);
        childComposite.setChildLayer(GridRegion.BODY, viewportLayer, 0, 1);
        CompositeLayer composite = new BoxLayer(childComposite, columnHeaderLayer);
        composite.addConfiguration(new RowOnlySelectionBindings());

        // EVG - For styling of viewportLayer contents to the right
        columnLabelAccumulator = new ColumnOverrideLabelAccumulator(viewportLayer);
        viewportLayer.setConfigLabelAccumulator(columnLabelAccumulator);

        // EVG - For styling of summaryLayer contents to the right. Needs to be done separately, as FixedSummaryRowLayer objects
        // are not connected with main viewportLayer, they're by themselves.
        summaryRowLayerColumnLabelAccumulator = new ColumnOverrideLabelAccumulator(summaryRowLayer);
        summaryRowLayer.setConfigLabelAccumulator(summaryRowLayerColumnLabelAccumulator);
...


Is that possible select a cell in a FixedSummaryRowLayer and copy it?
Re: Is that possible select a cell in a FixedSummaryRowLayer and copy it? [message #1778658 is a reply to message #1778654] Tue, 19 December 2017 12:51 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Not with the default implementation as of now. Similar to the header layers you would need to implement a custom CopyDataCommandHandler that knows the FixedSummaryRowLayer and add that information.
Re: Is that possible select a cell in a FixedSummaryRowLayer and copy it? [message #1778683 is a reply to message #1778658] Wed, 20 December 2017 03:25 Go to previous messageGo to next message
chun liang Wen is currently offline chun liang WenFriend
Messages: 10
Registered: December 2017
Junior Member
It seems the cells can not be selected
Re: Is that possible select a cell in a FixedSummaryRowLayer and copy it? [message #1778688 is a reply to message #1778683] Wed, 20 December 2017 06:16 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Yes, it is a fixed summary row and not part of the body layer that contains the SelectionLayer.
Re: Is that possible select a cell in a FixedSummaryRowLayer and copy it? [message #1778707 is a reply to message #1778688] Wed, 20 December 2017 10:58 Go to previous message
chun liang Wen is currently offline chun liang WenFriend
Messages: 10
Registered: December 2017
Junior Member
Thanks for you patient and reply
Previous Topic:why column header can not fully copied
Next Topic:Reset to original order (PopupMenuBuilder)
Goto Forum:
  


Current Time: Tue Apr 23 15:24:53 GMT 2024

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

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

Back to the top