Search in sources :

Example 1 with GroupByColumnIndexCommand

use of org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.command.GroupByColumnIndexCommand in project nebula.widgets.nattable by eclipse.

the class GroupByDragMode method mouseUp.

@Override
public void mouseUp(NatTable natTable, MouseEvent event) {
    LabelStack regionLabels = natTable.getRegionLabelsByXY(event.x, event.y);
    if (regionLabels != null && regionLabels.hasLabel(GroupByHeaderLayer.GROUP_BY_REGION) && this.selectedColumnIndex != -1) {
        natTable.doCommand(new GroupByColumnIndexCommand(this.selectedColumnIndex));
        this.selectedColumnIndex = -1;
    }
}
Also used : LabelStack(org.eclipse.nebula.widgets.nattable.layer.LabelStack) GroupByColumnIndexCommand(org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.command.GroupByColumnIndexCommand)

Aggregations

GroupByColumnIndexCommand (org.eclipse.nebula.widgets.nattable.extension.glazedlists.groupBy.command.GroupByColumnIndexCommand)1 LabelStack (org.eclipse.nebula.widgets.nattable.layer.LabelStack)1