com.vaadin.client.annotations
Annotation Type OnStateChange


@Retention(value=RUNTIME)
@Target(value=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
 java.lang.String[] value
          Defines a list of property names to listen for.
 

Element Detail

value

public abstract java.lang.String[] value
Defines a list of property names to listen for.

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


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.