Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87080 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
003bcda679
commit
c76485620e
|
@ -0,0 +1,34 @@
|
||||||
|
package org.gcube.portlets.user.td.client.grid;
|
||||||
|
|
||||||
|
import org.gcube.portlets.user.td.client.resource.TabularDataResources;
|
||||||
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridOperationId;
|
||||||
|
|
||||||
|
import com.sencha.gxt.widget.core.client.menu.Menu;
|
||||||
|
import com.sencha.gxt.widget.core.client.menu.MenuItem;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author "Giancarlo Panichi"
|
||||||
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
||||||
|
*
|
||||||
|
* Defines the context menu of grid
|
||||||
|
*/
|
||||||
|
public class TableContextMenu {
|
||||||
|
protected Menu tableContextMenu;
|
||||||
|
|
||||||
|
public TableContextMenu(){
|
||||||
|
MenuItem editRowItem = new MenuItem("Edit");
|
||||||
|
editRowItem.setId(GridOperationId.EditRow.toString());
|
||||||
|
editRowItem.setIcon(TabularDataResources.INSTANCE.columnLabel());
|
||||||
|
tableContextMenu.add(editRowItem);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return context menu for grid
|
||||||
|
*/
|
||||||
|
public Menu getMenu(){
|
||||||
|
return tableContextMenu;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue