|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.internal.event.ComponentEventProperty
public class ComponentEventProperty
Represents a configured listener/event(s) binding for a a component and the events that may be optionally listened for on the client browser.
| Constructor Summary | |
|---|---|
ComponentEventProperty(String componentId)
Creates a new component event property with the specified component id. |
|
| Method Summary | |
|---|---|
void |
addEventListener(String event,
String methodName)
Adds a listener to the specified client side event. |
void |
addFormEventListener(String event,
String methodName,
String formId,
boolean validateForm,
boolean async)
Adds a form listener to the specified client side event. |
void |
addListener(String[] events,
String methodName,
String formId,
boolean validateForm,
boolean async)
Adds a listener bound to the specified client side events. |
String |
getComponentId()
|
List |
getEventListeners(String event)
Gets the current list of listeners for a specific event, creates a new instance if one doesn't exist already. |
Set |
getEvents()
The set of all non form based events. |
List |
getFormEventListeners(String event)
Gets the current list of listeners for a specific event, creates a new instance if one doesn't exist already. |
List |
getFormEventListeners(String formId,
BrowserEvent event,
List append)
Creates a list of listeners bound to a particular form and client side browser event. |
Set |
getFormEvents()
The set of all form based listener events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentEventProperty(String componentId)
componentId - | Method Detail |
|---|
public void addListener(String[] events,
String methodName,
String formId,
boolean validateForm,
boolean async)
events - methodName - async -
public void addFormEventListener(String event,
String methodName,
String formId,
boolean validateForm,
boolean async)
event - methodName - formId - validateForm -
public void addEventListener(String event,
String methodName)
event - methodName - public String getComponentId()
public List getEventListeners(String event)
event -
public List getFormEventListeners(String event)
event -
public Set getEvents()
public Set getFormEvents()
public List getFormEventListeners(String formId,
BrowserEvent event,
List append)
formId - The form to find listeners for.event - The browser event that generated the request.append - The optional list to add the listeners to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||