org.cruxframework.crux.core.rebind.crossdevice
Class DeviceAdaptiveViewFactoryCreator

java.lang.Object
  extended by org.cruxframework.crux.core.rebind.AbstractProxyCreator
      extended by org.cruxframework.crux.core.rebind.screen.widget.ViewFactoryCreator
          extended by org.cruxframework.crux.core.rebind.crossdevice.DeviceAdaptiveViewFactoryCreator

public class DeviceAdaptiveViewFactoryCreator
extends ViewFactoryCreator

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
 
Nested classes/interfaces inherited from class org.cruxframework.crux.core.rebind.screen.widget.ViewFactoryCreator
ViewFactoryCreator.EmptyWidgetConsumer, ViewFactoryCreator.LazyCompatibleWidgetConsumer, ViewFactoryCreator.WidgetConsumer
 
Nested classes/interfaces inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
AbstractProxyCreator.SourcePrinter
 
Field Summary
 
Fields inherited from class org.cruxframework.crux.core.rebind.screen.widget.ViewFactoryCreator
controllerAccessHandler, iocContainerClassName, module, view, widgetConsumer
 
Fields inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheable, cacheableVersionFound, context, logger
 
Constructor Summary
DeviceAdaptiveViewFactoryCreator(com.google.gwt.core.ext.GeneratorContext context, com.google.gwt.core.ext.TreeLogger logger, View view, String device, String controllerName, String module)
           
 
Method Summary
protected  void generateProxyContructor(AbstractProxyCreator.SourcePrinter printer)
          Generate the View Constructor
protected  void generateProxyFields(AbstractProxyCreator.SourcePrinter printer)
          Generate the View fields
protected  void generateProxyMethods(AbstractProxyCreator.SourcePrinter printer)
          Generate the View methods.
protected  Map<String,String> getDeclaredMessages()
          Gets all messages declared on this screen
protected  String getLoggerVariable()
          Retrieves the logger variable name
 
Methods inherited from class org.cruxframework.crux.core.rebind.screen.widget.ViewFactoryCreator
commitPostProcessing, createPostProcessingScope, createVariableName, generateCreateDataObjectMethod, generateGetIocContainerMethod, generateResources, generateSubTypes, getContext, getControllerAccessHandler, getDeclaredMessage, getDevice, getKeyMessageParts, getLogger, getMetaElementType, getProxyQualifiedName, getProxySimpleName, getResourceAccessExpression, getResourceParts, getSourcePrinter, getSubTypeWriter, getSubTypeWriter, getSubTypeWriter, getSubTypeWriter, getView, getViewSuperClassName, getViewVariable, getWidgetCreator, getWidgetCreatorHelper, isDataBindEnabled, isKeyReference, isResourceReference, isValidWidget, newWidget, newWidget, prepare, printlnPostProcessing, processViewEvents
 
Methods inherited from class org.cruxframework.crux.core.rebind.AbstractProxyCreator
cacheableVersionFound, create, findCacheableImplementationAndMarkForReuseIfAvailable, findCacheableImplementationAndMarkForReuseIfAvailable, generateLoggerField, generateMethodParameters, generateMethodTrhowsClause, generateProxyWrapperMethodDeclaration, getJsniSimpleSignature, isAlreadyGenerated, isCacheable, isCrux2OldInterfacesCompatibilityEnabled, logDebugMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceAdaptiveViewFactoryCreator

public DeviceAdaptiveViewFactoryCreator(com.google.gwt.core.ext.GeneratorContext context,
                                        com.google.gwt.core.ext.TreeLogger logger,
                                        View view,
                                        String device,
                                        String controllerName,
                                        String module)
Parameters:
context -
logger -
view -
device -
controllerClass -
Method Detail

generateProxyFields

protected void generateProxyFields(AbstractProxyCreator.SourcePrinter printer)
Description copied from class: ViewFactoryCreator
Generate the View fields

Overrides:
generateProxyFields in class ViewFactoryCreator

generateProxyContructor

protected void generateProxyContructor(AbstractProxyCreator.SourcePrinter printer)
                                throws CruxGeneratorException
Generate the View Constructor

Overrides:
generateProxyContructor in class ViewFactoryCreator
Throws:
CruxGeneratorException

generateProxyMethods

protected void generateProxyMethods(AbstractProxyCreator.SourcePrinter printer)
Description copied from class: ViewFactoryCreator
Generate the View methods.

Overrides:
generateProxyMethods in class ViewFactoryCreator

getDeclaredMessages

protected Map<String,String> getDeclaredMessages()
Description copied from class: ViewFactoryCreator
Gets all messages declared on this screen

Overrides:
getDeclaredMessages in class ViewFactoryCreator
Returns:

getLoggerVariable

protected String getLoggerVariable()
Description copied from class: ViewFactoryCreator
Retrieves the logger variable name

Overrides:
getLoggerVariable in class ViewFactoryCreator
Returns:


Copyright © 2014. All rights reserved.