You can attach a Java method to react to any changes in a VirtualSpace entity’s instance value, as well as any changes to its state, by specifying a method name
for OnVSChange
. To listen to focus changes, use OnVSFocus
. The method name specified must be present in the class that is attached to the VirtualSpace. You chose the method name
, but your custom method must have the respective Java Method Signatures
:
@OnVSChange(name="componentPath")
public void onChange (VSChangeEvent event)
@OnVSFocus(name="componentPath")
public void onFocus (VSFocus event)
The method name editor has a more …
button that drops down a menu to help you to create a new method
, to select an existing method
, or to define
or fix the method annotation with the correct componentPath
.