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

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


                // needed for inline editing
                ILayerCell cell = selectedCells.iterator().next();
                this.selectionLayer.fireLayerEvent(
                        new InlineCellEditEvent(
                                this.selectionLayer,
                                new PositionCoordinate(this.selectionLayer, cell.getColumnPosition(), cell.getRowPosition()),
                                parent,
                                configRegistry,
                                (initialValue != null ? initialValue : cell.getDataValue())));
            } else if (selectedCells.size() > 1) {
                // determine the initial value
View Full Code Here


                .getSearchEventListener();
        if (searchEventListener != null) {
            selectionLayer.addLayerListener(searchEventListener);
        }
        try {
            PositionCoordinate anchor = selectionLayer.getSelectionAnchor();
            if (anchor.columnPosition < 0 || anchor.rowPosition < 0) {
                anchor = new PositionCoordinate(selectionLayer, 0, 0);
            }
            searchStrategy.setContextLayer(targetLayer);
            Object dataValueToFind = null;
            if ((dataValueToFind = searchCommand.getSearchText()) == null) {
                dataValueToFind = selectionLayer.getDataValueByPosition(
View Full Code Here

        this.aggregate = aggregate;
    }

    @Override
    public boolean matches(KeyEvent event) {
        PositionCoordinate anchorPosition = this.selectionLayer.getSelectionAnchor();

        if (anchorPosition.rowPosition != SelectionLayer.NO_SELECTION && anchorPosition.columnPosition != SelectionLayer.NO_SELECTION) {
            int layerColumnPosition = LayerUtil.convertColumnPosition(this.selectionLayer, anchorPosition.columnPosition, this.layer);
            int layerRowPosition = LayerUtil.convertRowPosition(this.selectionLayer, anchorPosition.rowPosition, this.layer);
View Full Code Here

    private PositionCoordinate positionCoordinate;

    protected AbstractPositionCommand(ILayer layer, int columnPosition,
            int rowPosition) {
        positionCoordinate = new PositionCoordinate(layer, columnPosition,
                rowPosition);
    }
View Full Code Here

    protected AbstractPositionCommand(AbstractPositionCommand command) {
        this.positionCoordinate = command.positionCoordinate;
    }

    public boolean convertToTargetLayer(ILayer targetLayer) {
        PositionCoordinate targetPositionCoordinate = LayerCommandUtil
                .convertPositionToTargetContext(positionCoordinate, targetLayer);
        if (targetPositionCoordinate != null) {
            positionCoordinate = targetPositionCoordinate;
            return true;
        } else {
View Full Code Here

                columnPosition, rowPosition);
        if (underlyingLayer == null) {
            return null;
        }

        return convertPositionToTargetContext(new PositionCoordinate(
                underlyingLayer, underlyingColumnPosition,
                underlyingRowPosition), targetLayer);
    }
View Full Code Here

            int startingColumnPosition, int startingRowPosition, int width,
            int height) {
        List<PositionCoordinate> coordinates = new ArrayList<PositionCoordinate>();
        for (int columnPosition = 0; columnPosition < width; columnPosition++) {
            for (int rowPosition = 0; rowPosition < height; rowPosition++) {
                PositionCoordinate coordinate = new PositionCoordinate(
                        contextLayer, startingColumnPosition,
                        startingRowPosition++);
                coordinates.add(coordinate);
            }
            startingColumnPosition++;
View Full Code Here

        List<PositionCoordinate> coordinates = new ArrayList<PositionCoordinate>();
        for (int columnPosition = width; columnPosition >= 0
                && startingColumnPosition >= 0; columnPosition--) {
            for (int rowPosition = height; rowPosition >= 0
                    && startingRowPosition >= 0; rowPosition--) {
                PositionCoordinate coordinate = new PositionCoordinate(
                        contextLayer, startingColumnPosition,
                        startingRowPosition--);
                coordinates.add(coordinate);
            }
            startingColumnPosition--;
View Full Code Here

            ILayer contextLayer, int startingColumnPosition,
            int startingRowPosition, int width, int height) {
        List<PositionCoordinate> coordinates = new ArrayList<PositionCoordinate>();
        for (int rowPosition = 0; rowPosition < height; rowPosition++) {
            for (int columnPosition = 0; columnPosition < width; columnPosition++) {
                PositionCoordinate coordinate = new PositionCoordinate(
                        contextLayer, startingColumnPosition++,
                        startingRowPosition);
                coordinates.add(coordinate);
            }
            startingRowPosition++;
View Full Code Here

        List<PositionCoordinate> coordinates = new ArrayList<PositionCoordinate>();
        for (int rowPosition = height; rowPosition >= 0
                && startingRowPosition >= 0; rowPosition--) {
            for (int columnPosition = width; columnPosition >= 0
                    && startingColumnPosition >= 0; columnPosition--) {
                PositionCoordinate coordinate = new PositionCoordinate(
                        contextLayer, startingColumnPosition--,
                        startingRowPosition);
                coordinates.add(coordinate);
            }
            startingRowPosition--;
View Full Code Here

TOP

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

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.