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

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


    }

    protected final void setRowPositions(ILayer layer, int... rowPositions) {
        rowPositionCoordinates = new HashSet<RowPositionCoordinate>();
        for (int rowPosition : rowPositions) {
            rowPositionCoordinates.add(new RowPositionCoordinate(layer,
                    rowPosition));
        }
    }
View Full Code Here


    }

    public boolean convertToTargetLayer(ILayer targetLayer) {
        Collection<RowPositionCoordinate> convertedRowPositionCoordinates = new HashSet<RowPositionCoordinate>();
        for (RowPositionCoordinate rowPositionCoordinate : rowPositionCoordinates) {
            RowPositionCoordinate convertedRowPositionCoordinate = LayerCommandUtil
                    .convertRowPositionToTargetContext(rowPositionCoordinate,
                            targetLayer);
            if (convertedRowPositionCoordinate != null) {
                convertedRowPositionCoordinates
                        .add(convertedRowPositionCoordinate);
View Full Code Here

            Collection<ILayer> underlyingLayers = layer
                    .getUnderlyingLayersByRowPosition(rowPosition);
            if (underlyingLayers != null) {
                for (ILayer underlyingLayer : underlyingLayers) {
                    if (underlyingLayer != null) {
                        RowPositionCoordinate convertedRowPositionCoordinate = convertRowPositionToTargetContext(
                                new RowPositionCoordinate(underlyingLayer,
                                        underlyingRowPosition), targetLayer);
                        if (convertedRowPositionCoordinate != null) {
                            return convertedRowPositionCoordinate;
                        }
                    }
View Full Code Here

public abstract class AbstractRowCommand implements ILayerCommand {

    private RowPositionCoordinate rowPositionCoordinate;

    protected AbstractRowCommand(ILayer layer, int rowPosition) {
        rowPositionCoordinate = new RowPositionCoordinate(layer, rowPosition);
    }
View Full Code Here

    protected AbstractRowCommand(AbstractRowCommand command) {
        this.rowPositionCoordinate = command.rowPositionCoordinate;
    }

    public boolean convertToTargetLayer(ILayer targetLayer) {
        RowPositionCoordinate targetRowPositionCoordinate = LayerCommandUtil
                .convertRowPositionToTargetContext(rowPositionCoordinate,
                        targetLayer);
        if (targetRowPositionCoordinate != null) {
            rowPositionCoordinate = targetRowPositionCoordinate;
            return true;
View Full Code Here

     *            The layer the position is related to
     * @param fromRowPosition
     *            The position of the row that should be reordered
     */
    public RowReorderStartCommand(ILayer layer, int fromRowPosition) {
        fromRowPositionCoordinate = new RowPositionCoordinate(layer,
                fromRowPosition);
    }
View Full Code Here

        return fromRowPositionCoordinate.getRowPosition();
    }

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

        } else {
            reorderToTopEdge = false;
            toRowPosition--;
        }

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

        return reorderToTopEdge;
    }

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

     */
    public MultiRowReorderCommand(ILayer layer, List<Integer> fromRowPositions,
            int toRowPosition, boolean reorderToTopEdge) {
        fromRowPositionCoordinates = new ArrayList<RowPositionCoordinate>();
        for (Integer fromRowPosition : fromRowPositions) {
            fromRowPositionCoordinates.add(new RowPositionCoordinate(layer,
                    fromRowPosition));
        }

        toRowPositionCoordinate = new RowPositionCoordinate(layer,
                toRowPosition);

        this.reorderToTopEdge = reorderToTopEdge;
    }
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.