Search in sources :

Example 1 with IExecutionTaskDialogBluePrint

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;
}
Also used : IExecutionTaskDialogBluePrint(org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint)

Example 2 with IExecutionTaskDialogBluePrint

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);
}
Also used : IExecutionTaskDialogBluePrint(org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint) ICapApiBluePrintFactory(org.jowidgets.cap.ui.api.widgets.ICapApiBluePrintFactory) IWindow(org.jowidgets.api.widgets.IWindow)

Example 3 with IExecutionTaskDialogBluePrint

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;
}
Also used : IExecutionTaskDialogBluePrint(org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint)

Example 4 with IExecutionTaskDialogBluePrint

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);
        }
    }
}
Also used : IExecutionTaskDialogBluePrint(org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint) IExecutionTask(org.jowidgets.cap.ui.api.execution.IExecutionTask) IWindow(org.jowidgets.api.widgets.IWindow)

Aggregations

IExecutionTaskDialogBluePrint (org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialogBluePrint)4 IWindow (org.jowidgets.api.widgets.IWindow)2 IExecutionTask (org.jowidgets.cap.ui.api.execution.IExecutionTask)1 ICapApiBluePrintFactory (org.jowidgets.cap.ui.api.widgets.ICapApiBluePrintFactory)1