Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@93574 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
79194f139a
commit
48704e392e
|
@ -3,6 +3,7 @@ package org.gcube.portlets.user.td.widgetcommonevent.client.event;
|
|||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.CellData;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridOperationId;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
@ -22,6 +23,7 @@ public class GridContextMenuItemEvent extends GwtEvent<GridContextMenuItemEvent.
|
|||
public static Type<GridContextMenuItemEventHandler> TYPE = new Type<GridContextMenuItemEventHandler>();
|
||||
private GridOperationId gridOperationId;
|
||||
private ArrayList<String> rows;
|
||||
private CellData cellData;
|
||||
|
||||
public interface GridContextMenuItemEventHandler extends EventHandler {
|
||||
void onGridContextMenuItemEvent(GridContextMenuItemEvent event);
|
||||
|
@ -40,6 +42,11 @@ public class GridContextMenuItemEvent extends GwtEvent<GridContextMenuItemEvent.
|
|||
this.gridOperationId=gridOperationId;
|
||||
this.rows=rows;
|
||||
}
|
||||
|
||||
public GridContextMenuItemEvent(GridOperationId gridOperationId,CellData cellData) {
|
||||
this.gridOperationId=gridOperationId;
|
||||
this.cellData=cellData;
|
||||
}
|
||||
|
||||
|
||||
public static Type<GridContextMenuItemEventHandler> getType() {
|
||||
|
@ -76,11 +83,21 @@ public class GridContextMenuItemEvent extends GwtEvent<GridContextMenuItemEvent.
|
|||
this.rows = rows;
|
||||
}
|
||||
|
||||
|
||||
public CellData getCellData() {
|
||||
return cellData;
|
||||
}
|
||||
|
||||
public void setCellData(CellData cellData) {
|
||||
this.cellData = cellData;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GridContextMenuItemEvent [gridOperationId=" + gridOperationId
|
||||
+ ", rows=" + rows + "]";
|
||||
+ ", rows=" + rows + ", cellData=" + cellData + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue