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