Minor Updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@92738 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2e14ed6521
commit
79919c13f7
|
@ -1,6 +1,8 @@
|
||||||
package org.gcube.portlets.user.td.widgetcommonevent.client.event;
|
package org.gcube.portlets.user.td.widgetcommonevent.client.event;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridOperationId;
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridOperationId;
|
||||||
|
|
||||||
import com.google.gwt.event.shared.EventHandler;
|
import com.google.gwt.event.shared.EventHandler;
|
||||||
|
@ -19,8 +21,8 @@ public class GridContextMenuItemEvent extends GwtEvent<GridContextMenuItemEvent.
|
||||||
|
|
||||||
public static Type<GridContextMenuItemEventHandler> TYPE = new Type<GridContextMenuItemEventHandler>();
|
public static Type<GridContextMenuItemEventHandler> TYPE = new Type<GridContextMenuItemEventHandler>();
|
||||||
private GridOperationId gridOperationId;
|
private GridOperationId gridOperationId;
|
||||||
|
private ArrayList<String> rows;
|
||||||
|
|
||||||
public interface GridContextMenuItemEventHandler extends EventHandler {
|
public interface GridContextMenuItemEventHandler extends EventHandler {
|
||||||
void onGridContextMenuItemEvent(GridContextMenuItemEvent event);
|
void onGridContextMenuItemEvent(GridContextMenuItemEvent event);
|
||||||
}
|
}
|
||||||
|
@ -29,20 +31,14 @@ public class GridContextMenuItemEvent extends GwtEvent<GridContextMenuItemEvent.
|
||||||
public HandlerRegistration addGridHasContextMenuItemEventHandler(GridContextMenuItemEventHandler handler);
|
public HandlerRegistration addGridHasContextMenuItemEventHandler(GridContextMenuItemEventHandler handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GridOperationId getOpertionId() {
|
|
||||||
return gridOperationId;
|
public static void fire(HasHandlers source, GridOperationId gridOperationId, ArrayList<String> rows) {
|
||||||
|
source.fireEvent(new GridContextMenuItemEvent(gridOperationId,rows));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOperationId(GridOperationId gridOperationId) {
|
public GridContextMenuItemEvent(GridOperationId gridOperationId,ArrayList<String> rows) {
|
||||||
this.gridOperationId = gridOperationId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void fire(HasHandlers source, GridOperationId gridOperationId) {
|
|
||||||
source.fireEvent(new GridContextMenuItemEvent(gridOperationId));
|
|
||||||
}
|
|
||||||
|
|
||||||
public GridContextMenuItemEvent(GridOperationId gridOperationId) {
|
|
||||||
this.gridOperationId=gridOperationId;
|
this.gridOperationId=gridOperationId;
|
||||||
|
this.rows=rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,11 +60,29 @@ public class GridContextMenuItemEvent extends GwtEvent<GridContextMenuItemEvent.
|
||||||
return gridOperationId;
|
return gridOperationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public GridOperationId getGridOperationId() {
|
||||||
|
return gridOperationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGridOperationId(GridOperationId gridOperationId) {
|
||||||
|
this.gridOperationId = gridOperationId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<String> getRows() {
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRows(ArrayList<String> rows) {
|
||||||
|
this.rows = rows;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "GridContextMenuItemEvent [gridOperationId=" + gridOperationId
|
return "GridContextMenuItemEvent [gridOperationId=" + gridOperationId
|
||||||
+ "]";
|
+ ", rows=" + rows + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue