Package org.ajax4jsf.builder.config

Examples of org.ajax4jsf.builder.config.RendererBean


   */
  public void createFiles(BuilderConfig config) throws GeneratorException {
    // Put common properties
    for (Iterator iter = config.getComponents().iterator(); iter.hasNext();) {
      ComponentBean component = (ComponentBean) iter.next();
      RendererBean renderer = component.getRenderer();
      createRenderer(renderer, component);
    }
    for (Iterator iter = config.getRenderers().iterator(); iter.hasNext();) {
      RendererBean renderer = (RendererBean) iter.next();
      createRenderer(renderer, null);
    }
  }
View Full Code Here


    field.setValue("\"" + componentBean.getFamily() + "\"");
    return field;
  }
 
  private JavaMethod getConstructor(ComponentBean componentBean, JavaClass javaClass) {
    final RendererBean renderer = componentBean.getRenderer();
    JavaMethod method = new JavaConstructor(javaClass);
    method.addModifier(JavaModifier.PUBLIC);
    method.setMethodBody(new MethodBody(method) {
      @Override
      public String toCode() {
        if (renderer != null) {
          return "setRendererType(\"" + renderer.getName() + "\");";
        }
        return super.toCode();
      }
    });
   
View Full Code Here

  public void parse(BuilderConfig config) throws CompilationException, IOException, ClassNotFoundException {
    List<ComponentBean> components = config.getComponents();
    for (ComponentBean componentBean : components) {
      ResourcesConfigGeneratorBean localBeanInstance = new ResourcesConfigGeneratorBean();
      RendererBean rendererBean = componentBean.getRenderer();

      addResources(localBeanInstance, rendererBean, config);

      String componentName = null;
     
View Full Code Here

TOP

Related Classes of org.ajax4jsf.builder.config.RendererBean

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.