|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface ViewController
Defines a class as ViewController to receive ViewController events for the given viewId(s).
This requires that the Orchestra ViewController is active, and that the AnnotationsViewControllerNameMapper is in use.
This annotation is an alternative to using the "bean name matches viewid" approach of the DefaultViewControllerNameMapper.
Whether this is the best approach to pairing a view with a controller bean depends upon the project. This does cause tight coupling between bean and view; moving a view requires modifying the bean. This is not appropriate for a project where "ui designer" and "code developer" roles are separated. However for other projects where the same person plays both roles then using this annotation reduces the amount of configuration required.
Optional Element Summary | |
---|---|
String[] |
viewIds
the ViewIds the bean is responsible for |
public abstract String[] viewIds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |