com.google.gwt.gadgets.rebind
Class DefaultPreferenceGenerator
java.lang.Object
com.google.gwt.gadgets.rebind.DefaultPreferenceGenerator
- All Implemented Interfaces:
- PreferenceGenerator
public class DefaultPreferenceGenerator
- extends java.lang.Object
- implements PreferenceGenerator
Handles Preference instantiation for the built-in types of Preferences.
|
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)
Write an instantiation expression for a given Preference subtype. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPreferenceGenerator
public DefaultPreferenceGenerator()
configurePreferenceElement
public 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
- Description copied from interface:
PreferenceGenerator
- Called by
UserPreferencesGenerator to configure the Preference's
element within the Gadget manifest.
- Specified by:
configurePreferenceElement in interface PreferenceGenerator
- Throws:
com.google.gwt.core.ext.UnableToCompleteException
writeInstantiation
public 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)
- Write an instantiation expression for a given Preference subtype.
- Specified by:
writeInstantiation in interface PreferenceGenerator