Annotation Interface VSRef
Annotation for VS references. It is used to as either a String-cast of an inline string or as a field or variable declaration of String type. The reference is relative to the VirtualSpace of the class's
@VS annotation, which the class carries as the VirtualSpace's class or, with refOnly = true, as a class that only uses the VirtualSpace.Only 1 acceptable method pattern for this annotation.
Example:
@VS(ref="Proj:/vs/subFolder/OneVS")
public class MyVSListener
{
@VSRef private static final String myAction = "myAction";
public MyVSListener()
{
...
}
// Some method referencing a VS component in the scoped VirtualSpace of the @VS annotation.
@OnVSAction(name="myButton")
public void onButtonAction(VSActionEvent event) throws NotFoundException
{
...
VSAction action1=event.getActionNN(myAction);
VSAction action2=event.getActionNN((@VSRef String) "myAction");
VSField field=event.getFieldNNFirstUIComponentNN((@VSRef String) "myField",VSField.class);
...
}
}
- Author:
- Christopher Mindus