No selection without CompositeLayer? [message #1046733] |
Mon, 22 April 2013 09:42 |
Joachim Fuchs Messages: 34 Registered: February 2013 |
Member |
|
|
Hi,
there seems to be an unexpected difference between
...
ViewportLayer viewportLayer = new ViewportLayer(treeLayer);
natTable = new NatTable(parent, viewportLayer , false);
...
and
...
ViewportLayer viewportLayer = new ViewportLayer(treeLayer);
CompositeLayer compositeLayer = new CompositeLayer(1, 1);
compositeLayer.setChildLayer(GridRegion.BODY, viewportLayer, 0, 0);
natTable = new NatTable(parent, natLayer, false);
...
To my surprise only the version with the composite layer results in a table that reacts on mouseclicks (selection and editing). Why is that? am I missing some important point?
As far as I understand the com[posite layer it is only responsible for composing a table from different layers. Right?
There is some
compositeLayer.registerCommandHandler(new EditCellCommandHandler());
compositeLayer.registerEventHandler(new InlineCellEditEventHandler(compositeLayer));
but if I apply all this to the viewportlayer it does not make a difference.
Thanks for your help.
J
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03308 seconds