Package org.aperteworkflow.ui.view

Examples of org.aperteworkflow.ui.view.ViewRenderer


  }

  private void renderView(final String viewId, Map<String, ?> viewData) {

    TaskWatch watch = new TaskWatch("Rendering view " + viewId);
    final ViewRenderer renderer = rendererMap.get(viewId);
    if (renderer == null) {
      throw new IllegalArgumentException("Unable to find view id: " + viewId);
    }
    currentViewData = viewData != null ? viewData : new HashMap<String, Object>();
    Component comp = null;
    try {
      comp = watch.watchTask("Really rendering", new Callable<Component>() {

        @Override
        public Component call() throws Exception {
          return renderer.render(currentViewData);
        }
      });
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here


  }

  @Override
  public void refreshCurrentView() {
    if (currentViewId != null && rendererMap.containsKey(currentViewId)) {
      ViewRenderer renderer = rendererMap.get(currentViewId);
      renderer.refreshData();
    }
  }
View Full Code Here

TOP

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

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.