Minor Updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@92547 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
03514f7e9f
commit
85ebff7715
|
@ -9,7 +9,6 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridHeaderColumnMenuItemEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.GridHeaderColumnMenuItemType;
|
||||
import org.gcube.portlets.user.tdwx.client.config.Row;
|
||||
|
@ -41,9 +40,7 @@ import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
|||
import com.google.gwt.event.logical.shared.SelectionEvent;
|
||||
import com.google.gwt.event.logical.shared.SelectionHandler;
|
||||
import com.google.gwt.event.shared.EventBus;
|
||||
|
||||
import com.google.gwt.http.client.RequestBuilder;
|
||||
import com.sencha.gxt.core.client.ValueProvider;
|
||||
import com.sencha.gxt.core.client.Style.SelectionMode;
|
||||
import com.sencha.gxt.core.client.resources.ThemeStyles;
|
||||
import com.sencha.gxt.core.client.util.Margins;
|
||||
|
@ -61,7 +58,6 @@ import com.sencha.gxt.widget.core.client.event.HeaderContextMenuEvent.HeaderCont
|
|||
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
||||
import com.sencha.gxt.widget.core.client.grid.ColumnModel;
|
||||
import com.sencha.gxt.widget.core.client.grid.Grid;
|
||||
import com.sencha.gxt.widget.core.client.grid.GridViewConfig;
|
||||
import com.sencha.gxt.widget.core.client.grid.LiveGridView;
|
||||
import com.sencha.gxt.widget.core.client.grid.LiveToolItem;
|
||||
import com.sencha.gxt.widget.core.client.menu.Item;
|
||||
|
@ -334,6 +330,15 @@ public class TabularDataXGridPanel extends ContentPanel {
|
|||
|
||||
loader.load(0, liveGridView.getCacheSize());
|
||||
|
||||
if (contextMenu != null) {
|
||||
grid.setContextMenu(contextMenu);
|
||||
} else
|
||||
grid.setContextMenu(null);
|
||||
|
||||
if (headerColumnMenuItems != null) {
|
||||
setHeaderContextMenuHandler();
|
||||
}
|
||||
|
||||
} else {
|
||||
// TODO we need to manually reset the sort
|
||||
loader.clearSortInfo();
|
||||
|
@ -356,14 +361,7 @@ public class TabularDataXGridPanel extends ContentPanel {
|
|||
grid.getView().setViewConfig(null);
|
||||
}
|
||||
|
||||
if (contextMenu != null) {
|
||||
grid.setContextMenu(contextMenu);
|
||||
} else
|
||||
grid.setContextMenu(null);
|
||||
|
||||
if (headerColumnMenuItems != null) {
|
||||
setHeaderContextMenuHandler();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue