com.extjs.gxt.ui.rebind.core
Class TemplatesGenerator

java.lang.Object
  extended by com.google.gwt.core.ext.Generator
      extended by com.extjs.gxt.ui.rebind.core.TemplatesGenerator

public class TemplatesGenerator
extends com.google.gwt.core.ext.Generator

This is the thread-safe Generator for Templates subinterfaces.


Nested Class Summary
static class TemplatesGenerator.SourceGenerator
          This class is responsible for creating the implementing class of a Templates subinterface.
static class TemplatesGenerator.TemplateToJavaSourceConverter
          

this class encapsulates all of the code to transform a single template into java source

When the TemplatesGenerator.TemplateToJavaSourceConverter.convert() method is called the generated source already contains a variable "StringBuilder sb" initialized to a new instance

The TemplatesGenerator.TemplateToJavaSourceConverter.convert() method should generate source of the form

 
Constructor Summary
TemplatesGenerator()
           
 
Method Summary
static java.lang.String compressHtml(java.lang.String html)
           
 java.lang.String generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, java.lang.String typeName)
           
 
Methods inherited from class com.google.gwt.core.ext.Generator
escape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplatesGenerator

public TemplatesGenerator()
Method Detail

generate

public java.lang.String generate(com.google.gwt.core.ext.TreeLogger logger,
                                 com.google.gwt.core.ext.GeneratorContext context,
                                 java.lang.String typeName)
                          throws com.google.gwt.core.ext.UnableToCompleteException
Specified by:
generate in class com.google.gwt.core.ext.Generator
Throws:
com.google.gwt.core.ext.UnableToCompleteException

compressHtml

public static java.lang.String compressHtml(java.lang.String html)