Annotation Type OnChanges


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface OnChanges
    A group of @OnChange associated to the same member.

    Applies to properties and references.

    It allows to define a value different for @OnChange in each view.
    Example:

      @OnChanges({
        @OnChange(forViews="DEFAULT", value= ... ),
        @OnChange(forViews="Simple, VerySimple", value= ... ),
        @OnChange(forViews="Complete", value= ... )
      })
     
    Since 6.1 @OnChange is repeatable, so you don't need to use @OnChanges any more.
    Author:
    Javier Paniza
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      OnChange[] value