com.vaadin.client.annotations.

Annotation Type OnStateChange

  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    public @interface OnStateChange

    Marks a method in Connector classes that should be used to handle changes to specific properties in the connector's shared state.

    The annotated method will be called whenever at least one of the named state properties have changed. If multiple listened properties are changed by the same StateChangeEvent, the method will only be called once.

    If there is no state variable with the provided name, the widgetset compilation will fail.

    Since:

    7.2

    Author:

    Vaadin Ltd

    • Required Element Summary

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

      Defines a list of property names to listen for.

    • Element Detail

      • value

        String[] value

        Defines a list of property names to listen for.

        Returns:

        an array of property names, should contain at least one item