com.google.gwt.gadgets.rebind
Interface PreferenceGenerator

All Known Implementing Classes:
DefaultPreferenceGenerator, EnumPreferenceGenerator

public interface PreferenceGenerator

Pluggable support for new Preference types.


Method Summary
 void configurePreferenceElement(com.google.gwt.core.ext.TreeLogger logger, org.w3c.dom.Document d, org.w3c.dom.Element userPref, com.google.gwt.core.ext.typeinfo.JClassType preferenceType, com.google.gwt.core.ext.typeinfo.JMethod m)
          Called by UserPreferencesGenerator to configure the Preference's element within the Gadget manifest.
 void writeInstantiation(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.user.rebind.SourceWriter sw, com.google.gwt.core.ext.typeinfo.JClassType extendsPreferenceType, com.google.gwt.core.ext.typeinfo.JMethod prefMethod)
          Called by GadgetGenerator to have an instantiation of the Preference instance written into a SourceWriter.
 

Method Detail

configurePreferenceElement

void configurePreferenceElement(com.google.gwt.core.ext.TreeLogger logger,
                                org.w3c.dom.Document d,
                                org.w3c.dom.Element userPref,
                                com.google.gwt.core.ext.typeinfo.JClassType preferenceType,
                                com.google.gwt.core.ext.typeinfo.JMethod m)
                                throws com.google.gwt.core.ext.UnableToCompleteException
Called by UserPreferencesGenerator to configure the Preference's element within the Gadget manifest.

Throws:
com.google.gwt.core.ext.UnableToCompleteException

writeInstantiation

void writeInstantiation(com.google.gwt.core.ext.TreeLogger logger,
                        com.google.gwt.user.rebind.SourceWriter sw,
                        com.google.gwt.core.ext.typeinfo.JClassType extendsPreferenceType,
                        com.google.gwt.core.ext.typeinfo.JMethod prefMethod)
                        throws com.google.gwt.core.ext.UnableToCompleteException
Called by GadgetGenerator to have an instantiation of the Preference instance written into a SourceWriter.

Throws:
com.google.gwt.core.ext.UnableToCompleteException