Minor updated
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@87107 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0221ba02b2
commit
d07e64f994
|
@ -9,10 +9,12 @@ import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
|
|||
import org.gcube.portlets.user.td.openwidget.client.TDOpen;
|
||||
import org.gcube.portlets.user.td.sdmxexportwidget.client.SDMXExportWizardTD;
|
||||
import org.gcube.portlets.user.td.sdmximportwidget.client.SDMXImportWizardTD;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.GridHeaderColumnMenuItemEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.UIStateEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.UIStateType;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.GridHeaderColumnMenuItemOperationId;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
||||
import org.gcube.portlets.user.td.wizardwidget.client.WizardListener;
|
||||
import org.gcube.portlets.user.tdwx.client.TabularDataX;
|
||||
|
@ -90,33 +92,21 @@ public class TabularDataController {
|
|||
}
|
||||
|
||||
protected void bindToEvents() {
|
||||
/*eventBus.addHandler(
|
||||
eventBus.addHandler(
|
||||
GridHeaderColumnMenuItemEvent.TYPE,
|
||||
new GridHeaderColumnMenuItemEvent.GridHeaderColumnMenuItemEventHandler() {
|
||||
|
||||
public void onGridHeaderColumnMenuItemEvent(
|
||||
GridHeaderColumnMenuItemEvent event) {
|
||||
Log.debug("Catch Event HeaderColumnMenuItemEvent");
|
||||
final AlertMessageBox d = new AlertMessageBox(
|
||||
"HeaderMenu Fire Event", "OperationId: "
|
||||
+ event.getOperationId()
|
||||
+ " Column: \n"
|
||||
+ event.getColumnSelected());
|
||||
d.addHideHandler(new HideEvent.HideHandler() {
|
||||
|
||||
public void onHide(HideEvent event) {
|
||||
d.hide();
|
||||
}
|
||||
});
|
||||
d.show();
|
||||
doGridHeaderColumnMenuCommand(event);
|
||||
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
eventBus.addHandler(RibbonEvent.TYPE,
|
||||
new RibbonEvent.RibbonEventHandler() {
|
||||
|
||||
|
||||
public void onRibbon(RibbonEvent event) {
|
||||
doRibbonCommand(event);
|
||||
|
||||
|
@ -437,18 +427,80 @@ public class TabularDataController {
|
|||
|
||||
}
|
||||
|
||||
/*protected TdTaskController tdTaskController;
|
||||
protected DialogBox tdTaskMainWindow;
|
||||
*/
|
||||
/*
|
||||
* protected TdTaskController tdTaskController; protected DialogBox
|
||||
* tdTaskMainWindow;
|
||||
*/
|
||||
protected void openTasksManagerWizard() {
|
||||
/*tdTaskController = TdTaskController.getInstance();
|
||||
TdTaskController.bindCommonBus(eventBus);
|
||||
tdTaskMainWindow = tdTaskController.getWindowTaskMonitor(); // This is main panel
|
||||
tdTaskMainWindow.show();
|
||||
/*
|
||||
* tdTaskController = TdTaskController.getInstance();
|
||||
* TdTaskController.bindCommonBus(eventBus); tdTaskMainWindow =
|
||||
* tdTaskController.getWindowTaskMonitor(); // This is main panel
|
||||
* tdTaskMainWindow.show();
|
||||
*/
|
||||
}
|
||||
|
||||
protected void doGridHeaderColumnMenuCommand(
|
||||
GridHeaderColumnMenuItemEvent event) {
|
||||
Log.debug("GridHeaderColumnMenu Fire Event",
|
||||
"OperationId: " + event.getOperationId() + " Column: \n"
|
||||
+ event.getColumnSelected());
|
||||
String opId = event.getOperationId();
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.AddLabel
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.ChangeLabel
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.RemoveLabel
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.RemoveColumn
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.ChangeToType
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.ColumnDuplicateValidation
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.Filter
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.ModifyColumnValueOnCondition
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
if (opId.compareTo(GridHeaderColumnMenuItemOperationId.NewAnnotationColumn
|
||||
.toString()) == 0) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void asyncCodeLoadingFailed(Throwable reason) {
|
||||
Log.error("Async code loading failed", reason);
|
||||
|
|
Loading…
Reference in New Issue