Search in sources :

Example 1 with ObserverEvent

use of org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent in project tdq-studio-se by Talend.

the class IndicatorSelectGrid method notifyVerticalBarShown.

/**
 * DOC talend Comment method "notifyVerticalBarVisible".
 *
 * @param observer
 */
@Override
protected void notifyVerticalBarShown(boolean show) {
    if (observers == null) {
        return;
    }
    for (TDQObserver<ObserverEvent> observer : observers) {
        ObserverEvent observerEvent = new ObserverEvent(ObserverEventEnum.VSrcollVisible);
        observerEvent.putData(ObserverEvent.VERTICAL_SRCOLL_VISABLE, show);
        observer.update(observerEvent);
    }
}
Also used : ObserverEvent(org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent)

Example 2 with ObserverEvent

use of org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent in project tdq-studio-se by Talend.

the class IndicatorSelectGrid method notifyhandleColumnHighlight.

@Override
protected void notifyhandleColumnHighlight(MouseEvent e) {
    if (observers == null) {
        return;
    }
    for (TDQObserver<ObserverEvent> observer : observers) {
        ObserverEvent observerEvent = new ObserverEvent(ObserverEventEnum.ColumnHighlight);
        GridColumn currentColumn = this.getColumn(new Point(e.x, e.y));
        if (currentColumn != null) {
            observerEvent.putData(ObserverEvent.COLUMN_HIGH_LIGHT, this.indexOf(currentColumn));
            observer.update(observerEvent);
        }
    }
}
Also used : GridColumn(org.eclipse.nebula.widgets.grid.GridColumn) Point(org.eclipse.swt.graphics.Point) ObserverEvent(org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent)

Example 3 with ObserverEvent

use of org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent in project tdq-studio-se by Talend.

the class IndicatorSelectGrid method notifyHscrollSelectionChange.

/*
     * (non-Javadoc)
     * 
     * @see org.talend.dataprofiler.core.ui.grid.AbstractIndicatorSelectGrid#notifyHscrollSelectionChange()
     */
@Override
protected void notifyHscrollSelectionChange() {
    if (observers == null) {
        return;
    }
    for (TDQObserver<ObserverEvent> observer : observers) {
        ObserverEvent observerEvent = new ObserverEvent(ObserverEventEnum.HSrcollMove);
        observerEvent.putData(ObserverEvent.HORIZONTAL_SCROLLBAR_MOVE, this.getHorizontalBar().getSelection());
        observer.update(observerEvent);
    }
}
Also used : ObserverEvent(org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent)

Example 4 with ObserverEvent

use of org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent in project tdq-studio-se by Talend.

the class ColumnPreviewGrid method notifyhandleColumnHighlight.

@Override
protected void notifyhandleColumnHighlight(MouseEvent e) {
    if (observers == null) {
        return;
    }
    for (TDQObserver<ObserverEvent> observer : observers) {
        ObserverEvent observerEvent = new ObserverEvent(ObserverEventEnum.ColumnHighlight);
        GridColumn currentColumn = this.getColumn(new Point(e.x, e.y));
        if (currentColumn != null) {
            observerEvent.putData(ObserverEvent.COLUMN_HIGH_LIGHT, this.indexOf(currentColumn));
            observer.update(observerEvent);
        }
    }
}
Also used : GridColumn(org.eclipse.nebula.widgets.grid.GridColumn) Point(org.eclipse.swt.graphics.Point) ObserverEvent(org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent)

Example 5 with ObserverEvent

use of org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent in project tdq-studio-se by Talend.

the class ColumnPreviewGrid method notifyHscrollSelectionChange.

/*
     * (non-Javadoc)
     * 
     * @see org.talend.dataprofiler.core.ui.grid.AbstractIndicatorSelectGrid#notifyHscrollSelectionChange()
     */
@Override
protected void notifyHscrollSelectionChange() {
    if (observers == null) {
        return;
    }
    for (TDQObserver<ObserverEvent> observer : observers) {
        ObserverEvent observerEvent = new ObserverEvent(ObserverEventEnum.HSrcollMove);
        observerEvent.putData(ObserverEvent.HORIZONTAL_SCROLLBAR_MOVE, this.getHorizontalBar().getSelection());
        observer.update(observerEvent);
    }
}
Also used : ObserverEvent(org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent)

Aggregations

ObserverEvent (org.talend.dataprofiler.core.ui.grid.utils.events.ObserverEvent)8 GridColumn (org.eclipse.nebula.widgets.grid.GridColumn)3 Point (org.eclipse.swt.graphics.Point)2