Package org.eclipse.nebula.widgets.nattable.coordinate

Examples of org.eclipse.nebula.widgets.nattable.coordinate.ColumnPositionCoordinate


    public boolean convertToTargetLayer(ILayer targetLayer) {
        Map<ColumnPositionCoordinate, Integer> newColPositionToWidth = new HashMap<ColumnPositionCoordinate, Integer>();

        for (ColumnPositionCoordinate columnPositionCoordinate : colPositionToWidth
                .keySet()) {
            ColumnPositionCoordinate convertedColumnPositionCoordinate = LayerCommandUtil
                    .convertColumnPositionToTargetContext(
                            columnPositionCoordinate, targetLayer);
            if (convertedColumnPositionCoordinate != null) {
                newColPositionToWidth.put(convertedColumnPositionCoordinate,
                        colPositionToWidth.get(columnPositionCoordinate));
View Full Code Here


    public SelectRowGroupsCommand(ILayer layer, int columnPosition,
            int rowPosition, boolean withShiftMask, boolean withControlMask) {
        super(layer, rowPosition);
        this.withShiftMask = withShiftMask;
        this.withControlMask = withControlMask;
        this.columnPositionCoordinate = new ColumnPositionCoordinate(layer,
                columnPosition);
    }
View Full Code Here

    public SelectRowsCommand(ILayer layer, int columnPosition,
            int[] rowPositions, boolean withShiftMask, boolean withControlMask,
            int rowPositionToMoveIntoViewport) {
        super(layer, rowPositions);
        this.columnPositionCoordinate = new ColumnPositionCoordinate(layer,
                columnPosition);
        this.withControlMask = withControlMask;
        this.withShiftMask = withShiftMask;
        this.rowPositionCoordinateToMoveIntoViewport = new RowPositionCoordinate(
                layer, rowPositionToMoveIntoViewport);
View Full Code Here

        this.rowPositionCoordinateToMoveIntoViewport = command.rowPositionCoordinateToMoveIntoViewport;
    }

    @Override
    public boolean convertToTargetLayer(ILayer targetLayer) {
        ColumnPositionCoordinate targetColumnPositionCoordinate = LayerCommandUtil
                .convertColumnPositionToTargetContext(columnPositionCoordinate,
                        targetLayer);

        if (targetColumnPositionCoordinate != null
                && targetColumnPositionCoordinate.getColumnPosition() >= 0
                && super.convertToTargetLayer(targetLayer)) {
            this.columnPositionCoordinate = targetColumnPositionCoordinate;
            this.rowPositionCoordinateToMoveIntoViewport = LayerCommandUtil
                    .convertRowPositionToTargetContext(
                            rowPositionCoordinateToMoveIntoViewport,
View Full Code Here

        } else {
            reorderToLeftEdge = false;
            toColumnPosition--;
        }

        toColumnPositionCoordinate = new ColumnPositionCoordinate(layer,
                toColumnPosition);
    }
View Full Code Here

    public boolean isReorderToLeftEdge() {
        return reorderToLeftEdge;
    }

    public boolean convertToTargetLayer(ILayer targetLayer) {
        ColumnPositionCoordinate targetToColumnPositionCoordinate = LayerCommandUtil
                .convertColumnPositionToTargetContext(
                        toColumnPositionCoordinate, targetLayer);
        if (targetToColumnPositionCoordinate != null) {
            toColumnPositionCoordinate = targetToColumnPositionCoordinate;
            return true;
View Full Code Here

public class ColumnReorderStartCommand implements ILayerCommand {

    private ColumnPositionCoordinate fromColumnPositionCoordinate;

    public ColumnReorderStartCommand(ILayer layer, int fromColumnPosition) {
        fromColumnPositionCoordinate = new ColumnPositionCoordinate(layer,
                fromColumnPosition);
    }
View Full Code Here

    public int getFromColumnPosition() {
        return fromColumnPositionCoordinate.getColumnPosition();
    }

    public boolean convertToTargetLayer(ILayer targetLayer) {
        ColumnPositionCoordinate targetFromColumnPositionCoordinate = LayerCommandUtil
                .convertColumnPositionToTargetContext(
                        fromColumnPositionCoordinate, targetLayer);
        if (targetFromColumnPositionCoordinate != null) {
            fromColumnPositionCoordinate = targetFromColumnPositionCoordinate;
            return true;
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.coordinate.ColumnPositionCoordinate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.