29 lines
603 B
Java
29 lines
603 B
Java
|
package org.gcube.portlets.user.newsfeed.client.event;
|
||
|
|
||
|
import com.google.gwt.event.shared.GwtEvent;
|
||
|
|
||
|
|
||
|
|
||
|
public class StopTimerEvent extends GwtEvent<StopTimerEventHandler> {
|
||
|
public static Type<StopTimerEventHandler> TYPE = new Type<StopTimerEventHandler>();
|
||
|
|
||
|
private boolean restart;
|
||
|
public StopTimerEvent(boolean restart) {
|
||
|
this.restart = restart;
|
||
|
}
|
||
|
|
||
|
public boolean isRestart() {
|
||
|
return restart;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public Type<StopTimerEventHandler> getAssociatedType() {
|
||
|
return TYPE;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void dispatch(StopTimerEventHandler handler) {
|
||
|
handler.onStopTimer(this);
|
||
|
}
|
||
|
}
|