org.viewaframework.annotation
Annotation Type Controller


@Retention(value=RUNTIME)
@Target(value=ANNOTATION_TYPE)
public @interface Controller

This annotation represents a ViewController object we want to "inject" to the annotated view.

Since:
1.0.2
Author:
Mario Garcia

Required Element Summary
 String pattern
           
 Class<? extends ViewController<? extends EventListener,? extends EventObject>> type
           
 
Optional Element Summary
 String id
          Controllers can have its own id.
 String viewId
           
 

Element Detail

pattern

public abstract String pattern
Returns:
The pattern that matches the objects that are going to trigger the event. Required.

type

public abstract Class<? extends ViewController<? extends EventListener,? extends EventObject>> type
Returns:
The class of the controller. Required.

id

public abstract String id
Controllers can have its own id. It should be used if any IOC container is used with Viewa. The id must be the identifier inside the IOC container

Returns:
Default:
""

viewId

public abstract String viewId
Returns:
The viewId of the view this controller is made for
Default:
""


Copyright © 2010. All Rights Reserved.