Search in sources :

Example 16 with IExecutionTask

use of org.jowidgets.cap.ui.api.execution.IExecutionTask 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

IExecutionTask (org.jowidgets.cap.ui.api.execution.IExecutionTask)16 LinkedList (java.util.LinkedList)5 IBeanProxy (org.jowidgets.cap.ui.api.bean.IBeanProxy)5 List (java.util.List)4 IUiThreadAccess (org.jowidgets.api.threads.IUiThreadAccess)4 IExecutionCallbackListener (org.jowidgets.cap.common.api.execution.IExecutionCallbackListener)4 AbstractUiResultCallback (org.jowidgets.cap.ui.tools.execution.AbstractUiResultCallback)3 IBeanData (org.jowidgets.cap.common.api.bean.IBeanData)2 IBeanKey (org.jowidgets.cap.common.api.bean.IBeanKey)2 ILinkCreation (org.jowidgets.cap.common.api.link.ILinkCreation)2 IBeanKeyFactory (org.jowidgets.cap.ui.api.bean.IBeanKeyFactory)2 HashSet (java.util.HashSet)1 LinkedHashSet (java.util.LinkedHashSet)1 IWindow (org.jowidgets.api.widgets.IWindow)1 IBeanDto (org.jowidgets.cap.common.api.bean.IBeanDto)1 IBeanModification (org.jowidgets.cap.common.api.bean.IBeanModification)1 ServiceCanceledException (org.jowidgets.cap.common.api.exception.ServiceCanceledException)1 IResultCallback (org.jowidgets.cap.common.api.execution.IResultCallback)1 ILinkCreationBuilder (org.jowidgets.cap.common.api.link.ILinkCreationBuilder)1 IExecutionTaskDialog (org.jowidgets.cap.ui.api.widgets.IExecutionTaskDialog)1