Search in sources :

Example 1 with IWindow

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);
}
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 2 with IWindow

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);
        }
    }
}
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

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