use of net.sourceforge.nattable.layer.IUniqueIndexLayer 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;
}
use of net.sourceforge.nattable.layer.IUniqueIndexLayer in project translationstudio8 by heartsome.
the class ViewportSelectRowCommandHandler method doCommand.
@Override
protected boolean doCommand(ViewportSelectRowCommand command) {
IUniqueIndexLayer scrollableLayer = viewportLayer.getScrollableLayer();
int scrollableColumnPosition = viewportLayer.getOriginColumnPosition();
int scrollableRowPosition = viewportLayer.localToUnderlyingRowPosition(command.getRowPosition());
scrollableLayer.doCommand(new SelectRowsCommand(scrollableLayer, scrollableColumnPosition, new int[] { scrollableRowPosition }, command.isWithShiftMask(), command.isWithControlMask()));
return true;
}
use of net.sourceforge.nattable.layer.IUniqueIndexLayer in project translationstudio8 by heartsome.
the class FreezeLayer method getStartXOfColumnPosition.
@Override
public int getStartXOfColumnPosition(int columnPosition) {
IUniqueIndexLayer underlyingLayer = (IUniqueIndexLayer) getUnderlyingLayer();
final int underlyingColumnPosition = LayerUtil.convertColumnPosition(this, columnPosition, underlyingLayer);
return underlyingLayer.getStartXOfColumnPosition(underlyingColumnPosition) - underlyingLayer.getStartXOfColumnPosition(topLeftPosition.columnPosition);
}
Aggregations