|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.internal.event.impl.ComponentEventInvoker
public class ComponentEventInvoker
Implementation of IComponentEventInvoker.
| Constructor Summary | |
|---|---|
ComponentEventInvoker()
|
|
| Method Summary | |
|---|---|
void |
addEventListener(String componentId,
IComponentSpecification listener)
Adds a listener mapping for events related to the specified component. |
void |
addFormEventListener(String formId,
IComponentSpecification listener)
Adds a mapping for an event listener that should be triggered when the specified form component with id of formId is submitted. |
List |
getEventListeners(String componentId)
Returns a list of all known listeners for the specified component. |
ComponentEventProperty[] |
getEventPropertyListeners(String componentIdPath)
Gets all bound property event listeners for the specified componentIdPath. |
List |
getFormEventListeners(String formId)
Gets a list of form bound event listeners previously bound via IComponentEventInvoker.addFormEventListener(String, IComponentSpecification). |
void |
invokeFormListeners(FormSupport formSupport,
IRequestCycle cycle,
BrowserEvent event)
Causes the configured listeners for the passed FormSupport's 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 |
setInvoker(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)
invokeListeners in interface IComponentEventInvokercomponent - 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 IForm to
be invoked, if mapped to this request/event.
invokeFormListeners in interface IComponentEventInvokerformSupport - The form support object being rendered.cycle - The associated request.event - The event that started it all.
public void addEventListener(String componentId,
IComponentSpecification listener)
addEventListener in interface IComponentEventInvokercomponentId - The component to map a listener with.listener - The listener.public List getEventListeners(String componentId)
getEventListeners in interface IComponentEventInvokercomponentId - The component id to find listeners for.
public ComponentEventProperty[] getEventPropertyListeners(String componentIdPath)
IComponentEventInvoker
getEventPropertyListeners in interface IComponentEventInvokercomponentIdPath - The unique id path of the component, as returned from IComponent.getIdPath().
public void addFormEventListener(String formId,
IComponentSpecification listener)
formId is submitted. This will later
be used when the form is submitted to find event listeners bound to fire when
a particular form is submitted.
addFormEventListener in interface IComponentEventInvokerformId - The form the event listener is bound to. This is the submitForm parameter
of the EventListener annotation/spec driving an event occurrence to submit a particular form. It doesn't
mean that the actual event target was the form .listener - The listener that has form bound event listeners.public List getFormEventListeners(String formId)
IComponentEventInvoker.addFormEventListener(String, IComponentSpecification).
getFormEventListeners in interface IComponentEventInvokerformId - The form to get mapped listeners for.
IComponentSpecification,
if any exist. Null if none exist.public void resetEventDidOccur()
resetEventDidOccur in interface ResetEventListenerpublic void setInvoker(ListenerInvoker invoker)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||