|
|||||||||
| 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
UserPreferences.Preference. The Gadget type should be parameterized
with the specific UserPreferences subtype, which will be provided to the
init(UserPreferences) method.
| Nested Class Summary | |
|---|---|
static interface |
Gadget.AllowHtmlQuirksMode
Annotation to turn on browser's quirks mode. |
static interface |
Gadget.Content
Specifies which View content sections should be associated with this Gadget. |
static interface |
Gadget.ContentType
Specifies the type of content and the list of views. |
static interface |
Gadget.GadgetLocale
This annotation allows Locale tags to be added to the module
specification. |
static interface |
Gadget.InjectContent
Enables developers to define hand-written content that is injected into the gadget manifest file. |
static interface |
Gadget.InjectModulePrefs
Enables developers to define hand-written content for the ModulePrefs section of the gadget manifset file. |
static interface |
Gadget.ModulePrefs
Defines the preferences associated with the gadget. |
static interface |
Gadget.UseLongManifestName
Annotation to turn on long filename generation. |
| 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 | ||||||||