Annotation Type VSRef


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE_USE)
    public @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.

    Only 1 acceptable method pattern for this annotation.

    Example:

       @VirtualSpace(ref="Proj:/vs/subFolder/OneVS")
       public class MyVSListener
         {
         @VSRef private static final String myAction = "myAction";
         
         public MyVSListener()
           {
           ...
           }
           
         // Some method referencing a UI component in the scoped panel of the @Panel 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