|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface WidgetController
This annotation is used to link the import of a Controller class to the presence
of a particular type of widget in the .view.xml page.
If a Controller class is annotated with @WidgetController annotation, it is
automatically imported by view if the target widget is present in the page.
For example:
@Controller("myController")@WidgetController({MyWidget.class, MyOtherWidget.class }) public class MyController { }
It is useful for widget developers that wants to ensure that a specific controller be present to handle something needed by their widgets, when they are used.
Controller| Required Element Summary | |
|---|---|
Class<? extends com.google.gwt.user.client.ui.IsWidget>[] |
value
The list of widget classes that makes the annotated controller automatically imported, if present in screen. |
| Element Detail |
|---|
public abstract Class<? extends com.google.gwt.user.client.ui.IsWidget>[] value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||