|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.services.impl.ComponentEventInvoker
public class ComponentEventInvoker
Managed and handles invoking listener methods for components in response to requested event listener invocations.
| Constructor Summary | |
|---|---|
ComponentEventInvoker()
|
|
| Method Summary | |
|---|---|
void |
addElementEventListener(String elementId,
String[] events,
String methodName,
String formId,
boolean validateForm,
boolean async)
Adds a deferred event listener binding for the specified html element. |
void |
addEventListener(String componentId,
String[] events,
String methodName,
String formId,
boolean validateForm,
boolean async)
Adds a deferred event listener binding for the specified component. |
ComponentEventProperty |
getComponentEvents(String id)
Gets event properties fro the specified component, creates a new instance if one doesn't exist already. |
Map |
getElementEvents()
Returns the Map being managed for element events. |
ComponentEventProperty |
getElementEvents(String id)
Gets event properties for the specified component, creates a new instance if one doesn't exist already. |
boolean |
hasElementEvents()
|
boolean |
hasElementEvents(String id)
|
boolean |
hasEvents(String componentId)
Returns whether or not the specified component has any connected events. |
void |
invokeFormListeners(FormSupport formSupport,
IRequestCycle cycle,
BrowserEvent event)
Causes the configured listeners for the passed FormSupport's {@link IForm) to
be invoked, if mapped to this request/event. |
void |
invokeListeners(IComponent component,
IRequestCycle cycle,
BrowserEvent event)
Causes the configured listeners for the passed component to be invoked. |
void |
resetEventDidOccur()
|
void |
setListenerInvoker(ListenerInvoker invoker)
Injected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentEventInvoker()
| Method Detail |
|---|
public void invokeListeners(IComponent component,
IRequestCycle cycle,
BrowserEvent event)
component - The component that recieved the invocations.cycle - The associated request.event - The event that started it all.
public void invokeFormListeners(FormSupport formSupport,
IRequestCycle cycle,
BrowserEvent event)
FormSupport's {@link IForm) to
be invoked, if mapped to this request/event.
formSupport - The form support object being rendered.cycle - The associated request.event - The event that started it all.
public void addEventListener(String componentId,
String[] events,
String methodName,
String formId,
boolean validateForm,
boolean async)
componentId - The component this is for.events - The events that should cause the listener to be executed.methodName - The page/component listener name that should be executed when
one of the supplied events occurs.async - If submitting a form, whether or not to do it asynchronously.
public void addElementEventListener(String elementId,
String[] events,
String methodName,
String formId,
boolean validateForm,
boolean async)
elementId - events - methodName - async - If submitting a form, whether or not to do it asynchronously.public boolean hasEvents(String componentId)
componentId - The unique component id to check.
public boolean hasElementEvents()
public boolean hasElementEvents(String id)
public ComponentEventProperty getComponentEvents(String id)
id - The component id
public ComponentEventProperty getElementEvents(String id)
id - The component id
public Map getElementEvents()
Map being managed for element events.
public void resetEventDidOccur()
resetEventDidOccur in interface ResetEventListenerpublic void setListenerInvoker(ListenerInvoker invoker)
invoker -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||