*/
private void generateConstructor(SourcePrinter printer, String className, String widgetId)
{
if (factory.getControllerAccessHandler() instanceof SingleControllerAccessHandler)
{
SingleControllerAccessHandler controllerAccessHandler = (SingleControllerAccessHandler) factory.getControllerAccessHandler();
printer.println("public "+className+"("+factory.getViewSuperClassName()+" view, "+controllerAccessHandler.getSingleControllerImplClassName()+" "+controllerAccessHandler.getSingleControllerVariable()+"){");
printer.println("super(view, "+EscapeUtils.quote(widgetId)+");");
printer.println("this."+ViewFactoryCreator.getViewVariable()+" = view;");
printer.println("this."+controllerAccessHandler.getSingleControllerVariable()+" = "+controllerAccessHandler.getSingleControllerVariable()+";");
}
else
{
printer.println("public "+className+"("+factory.getViewSuperClassName()+" view){");
printer.println("super(view, "+EscapeUtils.quote(widgetId)+");");