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);
}
}
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);
}
}
}
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);
}
}
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);
}
}
}
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);
}
}
Aggregations