public class GinFieldManager extends FieldManager
FieldManager
makes it possible for UiBinder
files to use widgets that need to be instantiated with gin.
See GinUiBinderGenerator
for details. This
is a slightly modified version of FieldManager
that allows fields to be instantiated using gin dependency
injection. Modifications are clearly indicated by
MODIFICATION
comments.logger
Constructor and Description |
---|
GinFieldManager(TypeOracle typeOracle,
com.google.gwt.uibinder.rebind.MortalLogger logger,
JClassType ginjectorClass,
boolean useLazyWidgetBuilders) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.uibinder.rebind.FieldWriter |
registerField(com.google.gwt.uibinder.rebind.FieldWriterType fieldWriterType,
JClassType fieldType,
String fieldName)
Used to declare fields of an existing type.
|
convertFieldToGetter, disableOptimization, findFieldReference, getFieldBuilder, getFieldGetter, initializeWidgetsInnerClass, lookup, pop, push, registerField, registerField, registerField, registerFieldForGeneratedCssResource, registerFieldForLazyDomElement, registerFieldOfGeneratedType, registerFieldReference, require, stripFieldGetter, validate, writeFieldDefinitions, writeGwtFieldsDeclaration
public GinFieldManager(TypeOracle typeOracle, com.google.gwt.uibinder.rebind.MortalLogger logger, JClassType ginjectorClass, boolean useLazyWidgetBuilders)
public com.google.gwt.uibinder.rebind.FieldWriter registerField(com.google.gwt.uibinder.rebind.FieldWriterType fieldWriterType, JClassType fieldType, String fieldName) throws UnableToCompleteException
FieldManager
FieldManager.registerFieldOfGeneratedType(com.google.gwt.core.ext.typeinfo.JClassType, java.lang.String, java.lang.String, java.lang.String)
.
When making a field we peek at the FieldManager.parsedFieldStack
to make sure
that the field that holds the widget currently being parsed will depended
upon the field being declared. This ensures, for example, that dom id
fields (see UiBinderWriter#declareDomIdHolder()
) used by an HTMLPanel
will be declared before it is.
registerField
in class FieldManager
fieldWriterType
- the field writer type associatedfieldType
- the type of the new fieldfieldName
- the name of the new fieldFieldWriter
instanceUnableToCompleteException
- on duplicate nameCopyright © 2010-2014 ArcBees. All Rights Reserved.