Updated for curation on validations

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@95876 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-05-20 16:55:15 +00:00
parent 163359648b
commit 36b37cc9f6
3 changed files with 53 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package org.gcube.portlets.user.td.widgetcommonevent.client.event;
import org.gcube.portlets.user.td.widgetcommonevent.client.type.WidgetRequestType;
import org.gcube.portlets.user.td.widgetcommonevent.shared.RequestProperties;
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
import com.google.gwt.event.shared.EventHandler;
@ -21,6 +22,7 @@ public class WidgetRequestEvent extends
private WidgetRequestType widgetRequestType;
private TRId trId;
private String columnName;
private RequestProperties requestProperties;
public interface WidgetRequestEventHandler extends EventHandler {
void onWidgetRequest(WidgetRequestEvent event);
@ -74,10 +76,19 @@ public class WidgetRequestEvent extends
this.columnName = columnName;
}
public RequestProperties getRequestProperties() {
return requestProperties;
}
public void setRequestProperties(RequestProperties requestProperties) {
this.requestProperties = requestProperties;
}
@Override
public String toString() {
return "WidgetRequestEvent [widgetRequestType=" + widgetRequestType
+ ", trId=" + trId + ", columnName=" + columnName + "]";
+ ", trId=" + trId + ", columnName=" + columnName
+ ", requestProperties=" + requestProperties + "]";
}
}

View File

@ -15,5 +15,6 @@ public enum WidgetRequestType {
LABELCOLUNPANEL,
CHANGETABLETYPEPANEL,
DUPLICATESROWSPANEL,
VALIDATIONSTASKSPANEL;
VALIDATIONSTASKSPANEL,
CURATIONBYREPLACEBATCHDIALOG;
}

View File

@ -0,0 +1,39 @@
package org.gcube.portlets.user.td.widgetcommonevent.shared;
import java.io.Serializable;
import java.util.Map;
/**
*
* @author "Giancarlo Panichi"
*
*/
public class RequestProperties implements Serializable {
private static final long serialVersionUID = -3084969072634114974L;
Map<String, Object> map;
public RequestProperties(){
}
public RequestProperties(Map<String,Object> map){
this.map=map;
}
public Map<String, Object> getMap() {
return map;
}
public void setMap(Map<String, Object> map) {
this.map = map;
}
@Override
public String toString() {
return "RequestProperties [map=" + map + "]";
}
}