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);
|
||||
|
||||
|
@ -179,7 +169,7 @@ public class TabularDataController {
|
|||
Log.debug("Remove TR:" + trId);
|
||||
TDGWTServiceAsync.INSTANCE.removeTabularResource(trId,
|
||||
new AsyncCallback<Void>() {
|
||||
|
||||
|
||||
public void onFailure(Throwable caught) {
|
||||
alertMessage("Error", "Error on remove TabResource: "
|
||||
+ caught.getLocalizedMessage());
|
||||
|
@ -257,7 +247,7 @@ public class TabularDataController {
|
|||
|
||||
protected void openSDMXImportWizard() {
|
||||
GWT.runAsync(new RunAsyncCallback() {
|
||||
|
||||
|
||||
public void onSuccess() {
|
||||
openWizard();
|
||||
SDMXImportWizardTD importWizard = new SDMXImportWizardTD(
|
||||
|
@ -437,19 +427,81 @@ 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);
|
||||
Info.display("Async code loading failed",
|
||||
|
|
Loading…
Reference in New Issue