Package org.aperteworkflow.ui.view

Examples of org.aperteworkflow.ui.view.RenderParams


    VerticalLayout layout = new VerticalLayout();
    layout.setSpacing(true);
    layout.setWidth("100%");

    for (GenericPortletViewRenderer renderer : permittedRenderers) {
      RenderParams params = createParams();
      Object gui = renderer.render(params);

      if (gui instanceof Component) {
        layout.addComponent(addControls((Component)gui, renderer));
      }
View Full Code Here


  protected Component renderTabSheet(List<GenericPortletViewRenderer> permittedRenderers) {
    TabSheet tabSheet = new TabSheet();
    tabSheet.setWidth("100%");

    for (GenericPortletViewRenderer renderer : permittedRenderers) {
      RenderParams params = createParams();
      Object gui = renderer.render(params);

      if (gui instanceof Component) {
        tabSheet.addTab(addControls((Component)gui, renderer), renderer.getName(i18NSource));
      }
View Full Code Here

    }
    return tabSheet;
  }

  private RenderParams createParams() {
    RenderParams params = new RenderParams() {
      @Override
      public void withTransaction(final TransactionCallback callback) {
        transactionProvider.withTransaction(new ProcessToolGuiCallback() {
          @Override
          public void callback(ProcessToolContext ctx, ProcessToolBpmSession session) {
            callback.invoke(ctx, session);
          }
        });
      }
    };
    params.setContext(ProcessToolContext.Util.getThreadProcessToolContext());
    params.setBpmSession(bpmSession);
    params.setI18NSource(i18NSource);
    params.setApplication(application);
    return params;
  }
View Full Code Here

TOP

Related Classes of org.aperteworkflow.ui.view.RenderParams

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.