org.apache.tapestry.internal.event
Class EventBoundListener

java.lang.Object
  extended by org.apache.tapestry.internal.event.EventBoundListener

public class EventBoundListener
extends Object

Provides a mapping for listener methods that are bound to events, used internally by ComponentEventProperty.

Author:
jkuhnert

Constructor Summary
EventBoundListener(String methodName, String componentId)
          Creates a new listener binding.
EventBoundListener(String methodName, String formId, boolean validateForm, String componentId, boolean async)
          Creates a new listener binding.
 
Method Summary
 boolean equals(Object obj)
          
 String getComponentId()
           
 String getFormId()
           
 String getMethodName()
           
 int hashCode()
          
 boolean isAsync()
          Whether or not listener should submit form asynchronously.
 boolean isValidateForm()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventBoundListener

public EventBoundListener(String methodName,
                          String componentId)
Creates a new listener binding.

Parameters:
methodName - The method to invoke.

EventBoundListener

public EventBoundListener(String methodName,
                          String formId,
                          boolean validateForm,
                          String componentId,
                          boolean async)
Creates a new listener binding.

Parameters:
methodName - The method to invoke.
formId - If not null the form to submit before invoking listener
validateForm - If formId is set, whether or not to validate form when submitting.
Method Detail

getFormId

public String getFormId()
Returns:
the formId

getMethodName

public String getMethodName()
Returns:
the methodName

getComponentId

public String getComponentId()
Returns:
the componentId

isValidateForm

public boolean isValidateForm()
Returns:
the validateForm

isAsync

public boolean isAsync()
Whether or not listener should submit form asynchronously.

Returns:

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2006 Apache Software Foundation. All Rights Reserved.