org.cruxframework.crux.plugin.gadget.rebind.gwt
Interface PreferenceGenerator

All Known Implementing Classes:
DefaultPreferenceGenerator

public interface PreferenceGenerator

Pluggable support for new Preference types.


Method Summary
 void configurePreferenceElement(com.google.gwt.core.ext.TreeLogger logger, Document d, Element userPref, Class<?> preferenceType, Method 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,
                                Document d,
                                Element userPref,
                                Class<?> preferenceType,
                                Method 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


Copyright © 2014. All rights reserved.