Add HasHandler on Event
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@86773 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5c2c961bda
commit
9f266445b0
7
pom.xml
7
pom.xml
|
@ -98,12 +98,7 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.sencha.gxt</groupId>
|
||||
<artifactId>gxt</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import org.gcube.portlets.user.td.widgetcommonevent.client.type.TaskType;
|
|||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
import com.google.gwt.event.shared.HandlerRegistration;
|
||||
import com.google.gwt.event.shared.HasHandlers;
|
||||
|
||||
|
||||
|
@ -23,6 +24,10 @@ public class TasksMonitorEvent extends GwtEvent<TasksMonitorEvent.TasksMonitorEv
|
|||
void onTaskMonitorEvent(TasksMonitorEvent event);
|
||||
}
|
||||
|
||||
public interface HasTasksMonitorEventHandler extends HasHandlers{
|
||||
public HandlerRegistration addTasksMonitorEventHandler(TasksMonitorEventHandler handler);
|
||||
}
|
||||
|
||||
public static void fire(HasHandlers source, TaskType taskType, String tableId) {
|
||||
source.fireEvent(new TasksMonitorEvent(taskType,tableId));
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
|
||||
|
||||
<!-- Other module inherits -->
|
||||
<inherits name='com.sencha.gxt.ui.GXT' />
|
||||
<!--<inherits name='com.sencha.gxt.ui.GXT' /> -->
|
||||
<inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
|
||||
<!-- Specify the app entry point class. -->
|
||||
<!-- <entry-point class='org.gcube.portlets.user.td.widgetcommonevent.client.WidgetCommonEventEntry' /> -->
|
||||
|
|
Loading…
Reference in New Issue