Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@99514 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-09-04 16:33:48 +00:00 committed by Giancarlo Panichi
parent d879320bc6
commit 62f833a10a
1 changed files with 14 additions and 12 deletions

View File

@ -53,7 +53,6 @@ public class ChangeTableTypePanel extends FramedPanel implements
protected VerticalLayoutContainer vl;
protected EventBus eventBus;
protected ChangeTableTypeSession changeTableTypeSession;
protected ComboBox<TableTypeElement> comboTableType;
protected TextButton change;
@ -122,9 +121,13 @@ public class ChangeTableTypePanel extends FramedPanel implements
protected void onChangeTableType() {
TableTypeElement tableTypeElement = comboTableType.getCurrentValue();
if (tableTypeElement != null) {
changeTableTypeSession = new ChangeTableTypeSession(trId,
tableTypeElement.getTableType());
callChangeTableType();
if (tableTypeElement.getTableType() != null) {
changeTableTypeSession = new ChangeTableTypeSession(trId,
tableTypeElement.getTableType());
callChangeTableType();
} else {
UtilsGXT3.alert("Error", "Invalid table type!");
}
} else {
UtilsGXT3.alert("Attention", "Select a table type!");
}
@ -149,7 +152,7 @@ public class ChangeTableTypePanel extends FramedPanel implements
public void onSuccess(String taskId) {
openMonitorDialog(taskId);
}
});
@ -195,14 +198,13 @@ public class ChangeTableTypePanel extends FramedPanel implements
load();
}
protected void close() {
/*if (parent != null) {
parent.close();
}*/
/*
* if (parent != null) { parent.close(); }
*/
}
///
// /
protected void openMonitorDialog(String taskId) {
MonitorDialog monitorDialog = new MonitorDialog(taskId, eventBus);
monitorDialog.addProgressDialogListener(this);
@ -246,5 +248,5 @@ public class ChangeTableTypePanel extends FramedPanel implements
close();
}
}