|
|
|
|
Re: How to track drown RowSelectionEvents [message #1815508 is a reply to message #1815507] |
Thu, 03 October 2019 17:20 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
just out of curiosity i updated to 1.6.0
if (event.isVerticalStructureChanged()) {
// if there are no row diffs, it seems to be a complete refresh
if (event.getRowDiffs() == null) {
Collection<Rectangle> rectangles = event.getChangedPositionRectangles();
for (Rectangle rectangle : rectangles) {
Range changedRange = new Range(rectangle.y, rectangle.y + rectangle.height);
if (selectedRowModified(changedRange)) {
this.selectionLayer.clear();
break;
}
}
} else {
// there are row diffs so we try to determine the diffs to
// process
for (StructuralDiff diff : event.getRowDiffs()) {
// DiffTypeEnum.CHANGE is used for resizing and
// shouldn't result in clearing the selection
if (diff.getDiffType() != DiffTypeEnum.CHANGE) {
if (selectedRowModified(diff.getBeforePositionRange())) {
this.selectionLayer.clear(); // this is causing the clear: SelectionModel 688
break;
}
}
}
}
EDIT:
its an RowStructuralRefreshEvent
layer = ColumnGroupExpandCollapseLayer
underlyingLayer = CustomColumnHideShowLayer
do you need more information?
[Updated on: Thu, 03 October 2019 17:25] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: How to track drown RowSelectionEvents [message #1815878 is a reply to message #1815556] |
Mon, 14 October 2019 09:42 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
sorry, seems i missed the last response.
i am using GroupByDataLayer
how shall i disable /enable the GlazedListsEventLayer? (i know there are activate/deactivate methods) but i would need to disable it after i set my selection (which would be fine)
but when/how shall i enable it again? (reactivate after the clear)
NOTE: i am using the table (multiple instances) in an eclipse rcp;
i am executing an Handler on a list, which emits the selection to update the Table. so at the time of the change in selection i do not have access to the table itself.
[Updated on: Mon, 14 October 2019 09:49] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.06986 seconds