com.google.gwt.uibinder.rebind.model
Class ImplicitClientBundle

java.lang.Object
  extended by com.google.gwt.uibinder.rebind.model.ImplicitClientBundle

public class ImplicitClientBundle
extends java.lang.Object

Models the ClientBundle to be generated from a ui.xml.


Constructor Summary
ImplicitClientBundle(java.lang.String packageName, java.lang.String uiBinderImplClassName, java.lang.String fieldName, MortalLogger logger)
           
 
Method Summary
 ImplicitCssResource createCssResource(java.lang.String name, java.lang.String[] source, JClassType extendedInterface, java.lang.String body, java.util.LinkedHashSet<JClassType> importTypes)
          Called to declare a new CssResource accessor on this bundle.
 ImplicitDataResource createDataResource(java.lang.String name, java.lang.String source)
          Called to declare a new DataResource accessor on this bundle.
 ImplicitImageResource createImageResource(java.lang.String name, java.lang.String source, java.lang.Boolean flipRtl, ImageResource.RepeatStyle repeatStyle)
          Called to declare a new ImageResource accessor on this bundle.
 java.lang.String getClassName()
           
 java.util.Set<ImplicitCssResource> getCssMethods()
           
 java.util.Set<ImplicitDataResource> getDataMethods()
           
 java.lang.String getFieldName()
           
 java.util.Set<ImplicitImageResource> getImageMethods()
           
 java.lang.String getPackageName()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitClientBundle

public ImplicitClientBundle(java.lang.String packageName,
                            java.lang.String uiBinderImplClassName,
                            java.lang.String fieldName,
                            MortalLogger logger)
Parameters:
packageName - Where the bundle should live
uiBinderImplClassName - The name of the generated ui binder implementation that owns the bundle
fieldName - The bundle's field name
Method Detail

createCssResource

public ImplicitCssResource createCssResource(java.lang.String name,
                                             java.lang.String[] source,
                                             JClassType extendedInterface,
                                             java.lang.String body,
                                             java.util.LinkedHashSet<JClassType> importTypes)
Called to declare a new CssResource accessor on this bundle.

Parameters:
name - the method name and the ui:field name
source - path to the .css file resource
extendedInterface - the public interface implemented by this CssResource, or null
body - the inline css text
importTypes - for the @Import annotation, if any. LinkedHashSet to enforce deterministic order across recompiles
Returns:

createDataResource

public ImplicitDataResource createDataResource(java.lang.String name,
                                               java.lang.String source)
Called to declare a new DataResource accessor on this bundle. All params must be non-null

Parameters:
name - the method name and the ui:field name
source - path to the resource
Returns:

createImageResource

public ImplicitImageResource createImageResource(java.lang.String name,
                                                 java.lang.String source,
                                                 java.lang.Boolean flipRtl,
                                                 ImageResource.RepeatStyle repeatStyle)
Called to declare a new ImageResource accessor on this bundle.

Parameters:
name - the method name and the ui:field name
source - path to the image resource, or null if none was specified
flipRtl - value for the flipRtl ImageOption, or null if none was specified
repeatStyle - value of the RepeatStyle ImageOption, or null if none was specified
Returns:

getClassName

public java.lang.String getClassName()

getCssMethods

public java.util.Set<ImplicitCssResource> getCssMethods()

getDataMethods

public java.util.Set<ImplicitDataResource> getDataMethods()

getFieldName

public java.lang.String getFieldName()

getImageMethods

public java.util.Set<ImplicitImageResource> getImageMethods()

getPackageName

public java.lang.String getPackageName()