Package org.eclipse.nebula.widgets.nattable.layer.event

Examples of org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualUpdateEvent


            repaintCell(update.getColumnPosition(), update.getRowPosition());
            return;
        }

        if (event instanceof ColumnVisualUpdateEvent) {
            ColumnVisualUpdateEvent update = (ColumnVisualUpdateEvent) event;
            // if more than one column has changed repaint the whole table
            Collection<Range> ranges = update.getColumnPositionRanges();
            if (ranges.size() == 1) {
                Range range = ranges.iterator().next();
                if (range.end - range.start == 1) {
                    repaintColumn(range.start);
                    return;
                }
            }
        }

        if (event instanceof RowVisualUpdateEvent) {
            RowVisualUpdateEvent update = (RowVisualUpdateEvent) event;
            // if more than one row has changed repaint the whole table
            Collection<Range> ranges = update.getRowPositionRanges();
            if (ranges.size() == 1) {
                Range range = ranges.iterator().next();
                if (range.end - range.start == 1) {
                    repaintRow(range.start);
                    return;
View Full Code Here


        int[] selectedColumns = getSelectedColumnIndeces();
        if (selectedColumns.length > 0) {
            applySelectedStyleToColumns(command, selectedColumns);
            // fire refresh event
            this.selectionLayer
                    .fireLayerEvent(new ColumnVisualUpdateEvent(selectionLayer,
                            selectionLayer.getSelectedColumnPositions()));
        } else {
            applySelectedStyle();
            // fire refresh event
            this.selectionLayer.fireLayerEvent(new VisualRefreshEvent(
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.layer.event.ColumnVisualUpdateEvent

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.