Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87039 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
af4eb0ebc9
commit
ac2b1fd4e0
|
@ -3,6 +3,7 @@ package org.gcube.portlets.user.td.client.grid;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.gcube.portlets.user.td.client.resource.TabularDataResources;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridHeaderColumnMenuItemOperationId;
|
||||
|
||||
import com.sencha.gxt.widget.core.client.menu.MenuItem;
|
||||
|
@ -14,14 +15,41 @@ public class ColumnHeaderMenu {
|
|||
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());
|
||||
changeLabelItem.setIcon(TabularDataResources.INSTANCE.columnLabel());
|
||||
menuItems.add(changeLabelItem);
|
||||
|
||||
MenuItem removeColumnItem = new MenuItem("Remove");
|
||||
removeColumnItem.setId(GridHeaderColumnMenuItemOperationId.RemoveColumn.toString());
|
||||
changeLabelItem.setIcon(TabularDataResources.INSTANCE.columnDelete());
|
||||
menuItems.add(removeColumnItem);
|
||||
|
||||
|
||||
MenuItem changeToTypeItem = new MenuItem("Change Type");
|
||||
changeToTypeItem.setId(GridHeaderColumnMenuItemOperationId.ChangeToType.toString());
|
||||
changeToTypeItem.setIcon(TabularDataResources.INSTANCE.columnType());
|
||||
menuItems.add(changeToTypeItem);
|
||||
|
||||
MenuItem filterItem = new MenuItem("Filter");
|
||||
filterItem.setId(GridHeaderColumnMenuItemOperationId.Filter.toString());
|
||||
filterItem.setIcon(TabularDataResources.INSTANCE.columnFilter());
|
||||
menuItems.add(filterItem);
|
||||
|
||||
MenuItem modifyValueOnConditionItem = new MenuItem("Modify Value On Condition");
|
||||
modifyValueOnConditionItem.setId(GridHeaderColumnMenuItemOperationId.ModifyColumnValueOnCondition.toString());
|
||||
modifyValueOnConditionItem.setIcon(TabularDataResources.INSTANCE.columnValues());
|
||||
menuItems.add(modifyValueOnConditionItem);
|
||||
|
||||
MenuItem newAnnotationColumnItem = new MenuItem("New Annotation");
|
||||
newAnnotationColumnItem.setId(GridHeaderColumnMenuItemOperationId.NewAnnotationColumn.toString());
|
||||
newAnnotationColumnItem.setIcon(TabularDataResources.INSTANCE.columnAdd());
|
||||
menuItems.add(newAnnotationColumnItem);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue