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

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


    @Override
    public boolean convertToTargetLayer(ILayer targetLayer) {
        List<RowPositionCoordinate> convertedFromRowPositionCoordinates = new ArrayList<RowPositionCoordinate>();

        for (RowPositionCoordinate fromRowPositionCoordinate : fromRowPositionCoordinates) {
            RowPositionCoordinate convertedFromRowPositionCoordinate = LayerCommandUtil
                    .convertRowPositionToTargetContext(
                            fromRowPositionCoordinate, targetLayer);
            if (convertedFromRowPositionCoordinate != null) {
                convertedFromRowPositionCoordinates
                        .add(convertedFromRowPositionCoordinate);
            }
        }

        RowPositionCoordinate targetToRowPositionCoordinate = LayerCommandUtil
                .convertRowPositionToTargetContext(toRowPositionCoordinate,
                        targetLayer);

        if (convertedFromRowPositionCoordinates.size() > 0
                && targetToRowPositionCoordinate != null) {
View Full Code Here


     */
    public MultiRowResizeCommand(ILayer layer, int[] rowPositions,
            int[] rowHeights) {
        super(layer, rowPositions);
        for (int i = 0; i < rowPositions.length; i++) {
            rowPositionToHeight.put(new RowPositionCoordinate(layer,
                    rowPositions[i]), Integer.valueOf(rowHeights[i]));
        }
    }
View Full Code Here

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

        for (RowPositionCoordinate rowPositionCoordinate : rowPositionToHeight
                .keySet()) {
            RowPositionCoordinate convertedRowPositionCoordinate = LayerCommandUtil
                    .convertRowPositionToTargetContext(rowPositionCoordinate,
                            targetLayer);
            if (convertedRowPositionCoordinate != null) {
                newRowPositionToHeight.put(convertedRowPositionCoordinate,
                        rowPositionToHeight.get(rowPositionCoordinate));
View Full Code Here

        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

     *            The position of the row to which the dragged row should be
     *            dropped
     */
    public RowReorderCommand(ILayer layer, int fromRowPosition,
            int toRowPosition) {
        fromRowPositionCoordinate = new RowPositionCoordinate(layer,
                fromRowPosition);

        if (toRowPosition < layer.getRowCount()) {
            reorderToTopEdge = true;
        } else {
            reorderToTopEdge = false;
            toRowPosition--;
        }

        toRowPositionCoordinate = new RowPositionCoordinate(layer,
                toRowPosition);
    }
View Full Code Here

        return reorderToTopEdge;
    }

    @Override
    public boolean convertToTargetLayer(ILayer targetLayer) {
        RowPositionCoordinate targetFromRowPositionCoordinate = LayerCommandUtil
                .convertRowPositionToTargetContext(fromRowPositionCoordinate,
                        targetLayer);
        RowPositionCoordinate targetToRowPositionCoordinate = LayerCommandUtil
                .convertRowPositionToTargetContext(toRowPositionCoordinate,
                        targetLayer);
        if (targetFromRowPositionCoordinate != null
                && targetToRowPositionCoordinate != null) {
            fromRowPositionCoordinate = targetFromRowPositionCoordinate;
View Full Code Here

TOP

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

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.