Annotation to define UI elements. The annotation can be used in a controller class and in a view class.
It can only be used for fields that define a
Node instance. Normally it will be used
to annotate children of the view:
@ViewController
public class SimpleController {
@ViewNode
private Button myButton;
}
By using the annotation in the view class the annotated view element (node) will get an id. If the
value() of the
annotation is != "" the
value() will be used. Otherwise the name of the field will be used as the id of the node.
By using the annotation in the controller class the annotated view element (node) will be injected. To find the matching
node the
value() of the annotation will be used. If the
value is == "" the name of the field will be
used as the id of the node.