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

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


                    insertRanges.clear();
                }

                if (eventType == ListEvent.DELETE) {
                    int index = event.getIndex() + deleteCount;
                    deleteRanges.add(new Range(index, index + 1));
                    deleteCount++;
                } else if (eventType == ListEvent.INSERT) {
                    insertRanges.add(new Range(event.getIndex(), event
                            .getIndex() + 1));
                }
            }

            internalFireEvents(deleteRanges, insertRanges);
View Full Code Here


     *            The ILayer to which the given column position matches.
     * @param columnPosition
     *            The column position of the column that has changed.
     */
    public ColumnVisualChangeEvent(ILayer layer, int columnPosition) {
        this(layer, new Range(columnPosition, columnPosition + 1));
    }
View Full Code Here

     *            The ILayer to which the given column position matches.
     * @param columnPosition
     *            The column position of the column that was deleted.
     */
    public ColumnDeleteEvent(ILayer layer, int columnPosition) {
        this(layer, new Range(columnPosition, columnPosition + 1));
    }
View Full Code Here

    public Collection<StructuralDiff> getColumnDiffs() {
        Collection<StructuralDiff> columnDiffs = new ArrayList<StructuralDiff>();

        for (Range range : getColumnPositionRanges()) {
            columnDiffs.add(new StructuralDiff(DiffTypeEnum.DELETE, range,
                    new Range(range.start, range.start)));
        }

        return columnDiffs;
    }
View Full Code Here

        for (Iterator<StructuralDiff> diffIterator = rowDiffs.iterator(); diffIterator
                .hasNext();) {
            StructuralDiff rowDiff = diffIterator.next();
            if (rowDiff.getDiffType() != null
                    && rowDiff.getDiffType().equals(DiffTypeEnum.DELETE)) {
                Range beforePositionRange = rowDiff.getBeforePositionRange();
                for (int i = beforePositionRange.start; i < beforePositionRange.end; i++) {
                    int index = i;// underlyingLayer.getRowIndexByPosition(i);
                    if (index >= 0)
                        toRemove.add(index);
                    else
View Full Code Here

            boolean addToCache) {

        for (StructuralDiff rowDiff : rowDiffs) {
            if (rowDiff.getDiffType() != null
                    && rowDiff.getDiffType().equals(DiffTypeEnum.ADD)) {
                Range beforePositionRange = rowDiff.getBeforePositionRange();
                List<Integer> modifiedRows = new ArrayList<Integer>();
                int beforeIndex = underlyingLayer
                        .getRowIndexByPosition(beforePositionRange.start);
                for (Integer row : cachedRowIndexes) {
                    if (row >= beforeIndex) {
View Full Code Here

        for (Iterator<StructuralDiff> diffIterator = columnDiffs.iterator(); diffIterator
                .hasNext();) {
            StructuralDiff columnDiff = diffIterator.next();
            if (columnDiff.getDiffType() != null
                    && columnDiff.getDiffType().equals(DiffTypeEnum.DELETE)) {
                Range beforePositionRange = columnDiff.getBeforePositionRange();
                for (int i = beforePositionRange.start; i < beforePositionRange.end; i++) {
                    int index = i;// underlyingLayer.getColumnIndexByPosition(i);
                    if (index >= 0)
                        toRemove.add(index);
                    else
View Full Code Here

            Collection<Integer> cachedColumnIndexes, boolean addToCache) {

        for (StructuralDiff columnDiff : columnDiffs) {
            if (columnDiff.getDiffType() != null
                    && columnDiff.getDiffType().equals(DiffTypeEnum.ADD)) {
                Range beforePositionRange = columnDiff.getBeforePositionRange();
                List<Integer> modifiedColumns = new ArrayList<Integer>();
                int beforeIndex = underlyingLayer
                        .getColumnIndexByPosition(beforePositionRange.start);
                for (Integer column : cachedColumnIndexes) {
                    if (column >= beforeIndex) {
View Full Code Here

    private ILayer layer;

    private Collection<Range> rowPositionRanges = new ArrayList<Range>();

    public RowVisualChangeEvent(ILayer layer, int rowPosition) {
        this(layer, new Range(rowPosition, rowPosition + 1));
    }
View Full Code Here

     *            The ILayer to which the given column position matches.
     * @param columnPosition
     *            The column position of the column that was inserted.
     */
    public ColumnInsertEvent(ILayer layer, int columnPosition) {
        this(layer, new Range(columnPosition, columnPosition + 1));
    }
View Full Code Here

TOP

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

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.