Added Menu on Column Header of Grid
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@86955 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e563973c93
commit
4ffc09f39b
|
@ -0,0 +1,31 @@
|
|||
package org.gcube.portlets.user.td.client.grid;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridHeaderColumnMenuItemOperationId;
|
||||
|
||||
import com.sencha.gxt.widget.core.client.menu.MenuItem;
|
||||
|
||||
public class ColumnHeaderMenu {
|
||||
|
||||
ArrayList<MenuItem> menuItems;
|
||||
|
||||
public ColumnHeaderMenu() {
|
||||
menuItems = new ArrayList<MenuItem>();
|
||||
|
||||
MenuItem filterItem = new MenuItem("Filter");
|
||||
filterItem.setId(GridHeaderColumnMenuItemOperationId.Filter.toString());
|
||||
menuItems.add(filterItem);
|
||||
|
||||
MenuItem changeLabelItem = new MenuItem("Change Label");
|
||||
changeLabelItem.setId(GridHeaderColumnMenuItemOperationId.ChangeLabel
|
||||
.toString());
|
||||
menuItems.add(changeLabelItem);
|
||||
}
|
||||
|
||||
|
||||
public List<MenuItem> getMenu() {
|
||||
return menuItems;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue