com.google.gwt.gadgets.client
Class ContentSection<T extends Gadget<?>>

java.lang.Object
  extended by com.google.gwt.gadgets.client.ContentSection<T>
Type Parameters:
T - A Gadget subclass

public abstract class ContentSection<T extends Gadget<?>>
extends java.lang.Object

If a gadget wants to support multiple views, it has to contain one ContentSection for each. The annotation Gadget.InjectContent can be used to inject content into the section and Gadget.ContentType is used to define which view this section is used for.


Constructor Summary
ContentSection()
           
 
Method Summary
abstract  void init(T gadget)
          This is the entry method for the content section.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentSection

public ContentSection()
Method Detail

init

public abstract void init(T gadget)
This is the entry method for the content section. It should be overridden by a user-defined implementation.

Parameters:
gadget - The gadget object that contains this content section.