Writing a Gadget:

  1. Declare a subtype of Gadget (e.g. public class MyGadget extends Gadget) that is default instantiable.
  2. If the Gadget requires access to features of the container, it should implement any of the NeedsFoo interfaces.
  3. At runtime, all feature setters will be called strictly before init(UserPreferences). The order in which the setters are called is undefined.

RR : GWT4Gadgets : Use case / code style

image

image