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

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

public class OwnerFieldClass
extends java.lang.Object

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.


Method Summary
static OwnerFieldClass getFieldClass(JClassType forType, MortalLogger logger)
          Gets or creates the descriptor for the given field class.
 JClassType getRawType()
          Returns the field's raw type.
 JMethod getSetter(java.lang.String propertyName)
          Finds the setter method for a given property.
 JConstructor getUiConstructor()
          Returns the constructor annotated with @UiConstructor, or null if none exists.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFieldClass

public static OwnerFieldClass getFieldClass(JClassType forType,
                                            MortalLogger logger)
                                     throws UnableToCompleteException
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

getRawType

public JClassType getRawType()
Returns the field's raw type.


getSetter

public JMethod getSetter(java.lang.String propertyName)
                  throws UnableToCompleteException
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

getUiConstructor

public JConstructor getUiConstructor()
Returns the constructor annotated with @UiConstructor, or null if none exists.