com.google.gwt.gadgets.rebind
Class EnumPreferenceGenerator
java.lang.Object
com.google.gwt.gadgets.rebind.EnumPreferenceGenerator
- All Implemented Interfaces:
- PreferenceGenerator
public class EnumPreferenceGenerator
- extends java.lang.Object
- implements PreferenceGenerator
Used to generate instantiations of the EnumPreferences type.
|
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)
Add the enumvalue elements to the userpref element. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumPreferenceGenerator
public EnumPreferenceGenerator()
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
- Add the enumvalue elements to the userpref element.
- 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)
- Description copied from interface:
PreferenceGenerator
- Called by
GadgetGenerator to have an instantiation of the
Preference instance written into a SourceWriter.
- Specified by:
writeInstantiation in interface PreferenceGenerator