|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.metadata.OnStateChangeMethod
public class OnStateChangeMethod
Encapsulates the data that the widgetset compiler generates for supporting a
connector method annotated with OnStateChange
| Constructor Summary | |
|---|---|
OnStateChangeMethod(java.lang.Class<?> declaringClass,
java.lang.String methodName,
java.lang.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(java.lang.String methodName,
java.lang.String[] properties)
Creates a new instance based on a method name, a list of parameters names and a list of properties to listen for. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getProperties()
Gets the list of state property names to listen for. |
void |
invoke(StateChangeEvent stateChangeEvent)
Invokes the listener method for a state change. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OnStateChangeMethod(java.lang.String methodName,
java.lang.String[] properties)
methodName - the name of the method to callproperties - an array of state property names to listen to
public OnStateChangeMethod(java.lang.Class<?> declaringClass,
java.lang.String methodName,
java.lang.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 to| Method Detail |
|---|
public void invoke(StateChangeEvent stateChangeEvent)
stateChangeEvent - the state change eventpublic java.util.List<java.lang.String> getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||