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

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


        for (ILayerListener layerListener : this.listeners) {
            layerListener.handleLayerEvent(event);
        }

        if (event instanceof CellVisualUpdateEvent) {
            CellVisualUpdateEvent update = (CellVisualUpdateEvent) event;
            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


            Point oldHover = this.currentHoveredCellPosition;

            this.currentHoveredCellPosition = cellPosition;

            if (oldHover != null) {
                fireLayerEvent(new CellVisualUpdateEvent(this, oldHover.x,
                        oldHover.y));
            }
            fireLayerEvent(new CellVisualUpdateEvent(this,
                    this.currentHoveredCellPosition.x,
                    this.currentHoveredCellPosition.y));
        }
    }
View Full Code Here

     */
    public void clearCurrentHoveredCellPosition() {
        if (this.currentHoveredCellPosition != null) {
            Point oldHover = this.currentHoveredCellPosition;
            this.currentHoveredCellPosition = null;
            fireLayerEvent(new CellVisualUpdateEvent(this, oldHover.x,
                    oldHover.y));
        }
    }
View Full Code Here

TOP

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

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.