Search in sources :

Example 1 with SelectColumnCommand

use of net.sourceforge.nattable.selection.command.SelectColumnCommand in project translationstudio8 by heartsome.

the class ViewportSelectColumnCommandHandler method doCommand.

@Override
protected boolean doCommand(ViewportSelectColumnCommand command) {
    IUniqueIndexLayer scrollableLayer = viewportLayer.getScrollableLayer();
    int scrollableColumnPosition = viewportLayer.localToUnderlyingColumnPosition(command.getColumnPosition());
    int scrollableRowPosition = viewportLayer.getOriginRowPosition();
    scrollableLayer.doCommand(new SelectColumnCommand(scrollableLayer, scrollableColumnPosition, scrollableRowPosition, command.isWithShiftMask(), command.isWithControlMask()));
    return true;
}
Also used : SelectColumnCommand(net.sourceforge.nattable.selection.command.SelectColumnCommand) IUniqueIndexLayer(net.sourceforge.nattable.layer.IUniqueIndexLayer)

Aggregations

IUniqueIndexLayer (net.sourceforge.nattable.layer.IUniqueIndexLayer)1 SelectColumnCommand (net.sourceforge.nattable.selection.command.SelectColumnCommand)1