public class OnStateChangeMethod extends Object
OnStateChange.| Constructor and Description |
|---|
OnStateChangeMethod(Class<?> declaringClass,
String methodName,
String[] properties)
Creates a new instance based on declaring class, a method name, a list of
parameters names and a list of properties to listen for.
|
OnStateChangeMethod(String methodName,
String[] properties)
Creates a new instance based on a method name, a list of parameters names
and a list of properties to listen for.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getProperties()
Gets the list of state property names to listen for.
|
void |
invoke(StateChangeEvent stateChangeEvent)
Invokes the listener method for a state change.
|
public OnStateChangeMethod(String methodName, String[] properties)
methodName - the name of the method to callproperties - an array of state property names to listen topublic OnStateChangeMethod(Class<?> declaringClass, String methodName, String[] properties)
If the declaring class is null, the method is found based on
the type of the connector that fired the state change event.
declaringClass - the class in which the target method is declared, or
null to use the class of the connector firing the
eventmethodName - the name of the method to callproperties - an array of state property names to listen topublic void invoke(StateChangeEvent stateChangeEvent)
stateChangeEvent - the state change eventCopyright © 2023 Vaadin Ltd. All rights reserved.