public class

OwnerFieldClass

extends Object
java.lang.Object
   ↳ com.google.gwt.uibinder.rebind.model.OwnerFieldClass

Class Overview

Descriptor for a class which can be used as a @UiField. This is usually a widget, but can also be a resource (such as Messages or an ImageBundle). Also notice that the existence of an OwnerFieldClass doesn't mean the class is actually present as a field in the owner.

Summary

Public Methods
static OwnerFieldClass getFieldClass(JClassType forType, MortalLogger logger, UiBinderContext context)
Gets or creates the descriptor for the given field class.
JClassType getRawType()
Returns the field's raw type.
JMethod getSetter(String propertyName)
Finds the setter method for a given property.
Map<String, Pair<JMethod, Integer>> getUiChildMethods()
Returns a list of methods annotated with @UiChild.
JConstructor getUiConstructor()
Returns the constructor annotated with @UiConstructor, or null if none exists.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static OwnerFieldClass getFieldClass (JClassType forType, MortalLogger logger, UiBinderContext context)

Gets or creates the descriptor for the given field class.

Parameters
forType the field type to get a descriptor for
logger TODO
Returns
  • the descriptor
Throws
UnableToCompleteException

public JClassType getRawType ()

Returns the field's raw type.

public JMethod getSetter (String propertyName)

Finds the setter method for a given property.

Parameters
propertyName the name of the property
Returns
  • the setter method, or null if none exists
Throws
UnableToCompleteException

public Map<String, Pair<JMethod, Integer>> getUiChildMethods ()

Returns a list of methods annotated with @UiChild.

Returns
  • a list of all add child methods

public JConstructor getUiConstructor ()

Returns the constructor annotated with @UiConstructor, or null if none exists.