org.cruxframework.crux.core.client.controller
Annotation Type WidgetController


@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.

Author:
Thiago da Rosa de Bustamante
See Also:
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

value

public abstract 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.



Copyright © 2014. All rights reserved.