Package org.cruxframework.crux.core.rebind.AbstractProxyCreator

Examples of org.cruxframework.crux.core.rebind.AbstractProxyCreator.SourcePrinter


  {
    String lazyId = ViewFactoryUtils.getLazyPanelId(targetPanelId, wrappingType);
   
    String lazyPanel = ViewFactoryCreator.createVariableName("lazy");

    SourcePrinter lazyPrinter = factory.getSubTypeWriter(lazyPanel+"Class", LazyPanel.class.getCanonicalName(),
                            null,
                            getImports());
   
    generateConstructor(lazyPrinter, lazyPanel+"Class", lazyId);
    generateCreateWidgetMethod(lazyPrinter, element, lazyId);
    generateFields(lazyPrinter, lazyPanel+"Class");
    generateGetResourceMethod(lazyPrinter);
   
    lazyPrinter.commit();
   
    if (factory.getControllerAccessHandler() instanceof SingleControllerAccessHandler)
    {
      SingleControllerAccessHandler controllerAccessHandler = (SingleControllerAccessHandler) factory.getControllerAccessHandler();
    factoryPrinter.println(lazyPanel+"Class " + lazyPanel + " = new "+lazyPanel+"Class("+ViewFactoryCreator.getViewVariable()+", "+controllerAccessHandler.getSingleControllerVariable()+");");
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.rebind.AbstractProxyCreator.SourcePrinter

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.