use of org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint in project jo-client-platform by jo-source.
the class CapApiBluePrintFactory method executionTaskDialog.
@Override
public IExecutionTaskDialogBluePrint executionTaskDialog(final IExecutionContext executionContext, final IExecutionTask executionTask) {
Assert.paramNotNull(executionTask, "executionTask");
final IExecutionTaskDialogBluePrint result = executionTaskDialog(executionTask);
result.setExecutionContext(executionContext);
return result;
}
use of org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint 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.cap.ui.api.widgets.IExecutionTaskDialogBluePrint in project jo-client-platform by jo-source.
the class CapApiBluePrintFactory method executionTaskDialog.
@Override
public IExecutionTaskDialogBluePrint executionTaskDialog(final IExecutionTask executionTask) {
final IExecutionTaskDialogBluePrint result = bluePrintFactory.bluePrint(IExecutionTaskDialogBluePrint.class);
result.setExecutionTask(executionTask);
return result;
}
use of org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint 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