use of org.jowidgets.api.widgets.IWindow in project jo-client-platform by jo-source.
the class CsvExportExecutor method createExecutionTaskDialog.
private static IExecutionTaskDialog createExecutionTaskDialog(final IExecutionContext executionContext, final IExecutionTask executionTask) {
final ICapApiBluePrintFactory cbpf = CapUiToolkit.bluePrintFactory();
final IExecutionTaskDialogBluePrint executionTaskDialogBp = cbpf.executionTaskDialog(executionContext, executionTask);
executionTaskDialogBp.setModal(false);
final IWindow activeWindow = Toolkit.getActiveWindow();
return activeWindow.createChildWindow(executionTaskDialogBp);
}
use of org.jowidgets.api.widgets.IWindow in project jo-client-platform by jo-source.
the class ProgressDialogParameterProvider method showProgress.
private void showProgress(final IExecutionContext executionContext, final List<IBeanProxy<BEAN_TYPE>> beans) {
if (beans.size() > 0) {
final IExecutionTask executionTask = beans.iterator().next().getExecutionTask();
if (executionTask != null) {
final IWindow activeWindow = Toolkit.getActiveWindow();
final IExecutionTaskDialogBluePrint dialogBp = CapUiToolkit.bluePrintFactory().executionTaskDialog(executionTask);
dialogBp.setModal(false);
dialogBp.setExecutionContext(executionContext);
executionTaskDialog = activeWindow.createChildWindow(dialogBp);
executionTaskDialog.setVisible(true);
}
}
}
Aggregations