|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.gadgets.client.Gadget<T>
T - the type of UserPreferences the Gadget expects.public abstract class Gadget<T extends UserPreferences>
A base class for writing a Google Gadget.
Writing a Gadget:
public class MyGadget extends Gadget) that is default
instantiable.NeedsFoo interfaces.init(UserPreferences). The order in which the setters are called is
undefined.
Access to user preferences is provided through a user-defined subtype of the
UserPreferences interface. Each preference should be defined as a
zero-argument method, returning the desired type of Preference. The
Gadget type should be parameterized with the specific UserPrefrences subtype,
which will be provided to the init(UserPreferences) method.
| Constructor Summary | |
|---|---|
protected |
Gadget()
|
| Method Summary | |
|---|---|
protected abstract void |
init(T preferences)
This method will be called after all of the feature initialization hooks have been called. |
void |
onModuleLoad()
This is used by the Gadget framework for low-level bootstrap functions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Gadget()
| Method Detail |
|---|
public final void onModuleLoad()
onModuleLoad in interface com.google.gwt.core.client.EntryPointprotected abstract void init(T preferences)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||