|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface EventListener
Annotation used to connect an event on a component / page with a particular listener method. This is currently intended to be used to connect client side events to listener methods but may have uses elsewhere.
| Required Element Summary | |
|---|---|
String[] |
events
The list of events that should cause this listener to invoke. |
| Optional Element Summary | |
|---|---|
boolean |
async
If used in conjunction with submitForm(), will either submit the form
normally or asynchronously. |
String[] |
elements
The unique html element ids to listen to the events on. |
String |
submitForm
The form id of the form that should have its data submitted when one of the specified events is triggered. |
String[] |
targets
The unique IComponent ids of the targeted
sources that this listener will be listening to events on. |
boolean |
validateForm
Whether or not to perform form validation if the #form() parameter has
been set. |
| Element Detail |
|---|
public abstract String[] events
events = {"onClick", "onOptionSelect"} etc..
public abstract String[] targets
IComponent ids of the targeted
sources that this listener will be listening to events on.
public abstract String[] elements
public abstract String submitForm
public abstract boolean validateForm
#form() parameter has
been set. Default is false.
public abstract boolean async
submitForm(), will either submit the form
normally or asynchronously. Default is asyncrhonous.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||