Annotation Interface OnChange


@Retention(RUNTIME) public @interface OnChange
Name a method to call when a property field (see @P) changes in response to an external port or control call. This should be set on the field, not the method to be called.

When used with a resource loading property, this method will be called after the new resource has been set on the field and is available to use.

The method will not be called via internal changes or animation on a Property - to respond to these see

invalid reference
Property#values()
or Property.valuesAs(java.lang.Class)
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of a method to call.
  • Element Details

    • value

      String value
      The name of a method to call.
      Returns:
      method name