Package pl.net.bluesoft.rnd.processtool.ui.widgets

Examples of pl.net.bluesoft.rnd.processtool.ui.widgets.ProcessToolWidget


        watch.watchTask(w.getClassName() + ": " + w.getName(), new Callable() {

          @Override
          public Object call() throws Exception {
            try {
              ProcessToolWidget realWidget = getWidget(w, stateConfiguration, ctx, null, widgetEventBus);
              if (realWidget instanceof ProcessToolVaadinRenderable && (!nvl(w.getOptional(), false) || realWidget.hasVisibleData())) {
                processWidgetChildren(w, realWidget, stateConfiguration, ctx, null, widgetEventBus);
                ProcessToolVaadinRenderable vaadinW = (ProcessToolVaadinRenderable) realWidget;
                vl.addComponent(vaadinW.render());
              }
            }
View Full Code Here


    }
  }

  private void addWidgetChild(ProcessToolWidget parentWidgetInstance, ProcessStateConfiguration stateConfiguration, ProcessToolContext ctx,
      ProcessStateWidget subW, String generatorKey, WidgetEventBus widgetEventBus) {
    ProcessToolWidget widgetInstance = getWidget(subW, stateConfiguration, ctx, generatorKey, widgetEventBus);
      if (!nvl(subW.getOptional(), false) || widgetInstance.hasVisibleData()) {
        processWidgetChildren(subW, widgetInstance, stateConfiguration, ctx, generatorKey, widgetEventBus);
        parentWidgetInstance.addChild(widgetInstance);
      }
    }
View Full Code Here

      }
    }

  private ProcessToolWidget getWidget(ProcessStateWidget w, ProcessStateConfiguration stateConfiguration, ProcessToolContext ctx,
                    String generatorKey, WidgetEventBus widgetEventBus) {
    ProcessToolWidget processToolWidget;
    try {
      ProcessToolRegistry toolRegistry = VaadinUtility.getProcessToolContext(application.getContext()).getRegistry();
      processToolWidget = w.getClassName() == null ? toolRegistry.makeWidget(w.getName()) : toolRegistry.makeWidget(w.getClassName());
      processToolWidget.setContext(stateConfiguration, w, i18NSource, bpmSession, application,
                                   bpmSession.getPermissionsForWidget(w, ctx), isOwner);
      processToolWidget.setGeneratorKey(generatorKey);
      processToolWidget.setWidgetEventBus(widgetEventBus);
      if (processToolWidget instanceof ProcessToolDataWidget) {
        ((ProcessToolDataWidget) processToolWidget).loadData(task);
        dataWidgets.add((ProcessToolDataWidget) processToolWidget);
      }
    }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.ui.widgets.ProcessToolWidget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.