org.apache.tapestry.internal.event
Class EventBoundListener

java.lang.Object
  extended by org.apache.tapestry.internal.event.EventBoundListener
All Implemented Interfaces:
Cloneable

public class EventBoundListener
extends Object
implements Cloneable

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


Constructor Summary
EventBoundListener(String methodName, String componentId)
          Creates a new listener binding.
EventBoundListener(String methodName, String componentId, boolean autoSubmit)
          Creates a new listener binding.
EventBoundListener(String methodName, String formId, boolean validateForm, String componentId, boolean async, boolean focus)
          Creates a new listener binding.
EventBoundListener(String methodName, String formId, boolean validateForm, String componentId, boolean async, boolean focus, boolean autoSubmit)
          Creates a new listener binding.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
          
 String getComponentId()
           
 String getComponentIdPath()
           
 String getFormId()
           
 String getMethodName()
           
 int hashCode()
          
 boolean isAsync()
          Whether or not listener should submit form asynchronously.
 boolean isAutoSubmit()
           
 boolean isValidateForm()
           
 void setComponentId(String id)
           
 void setComponentIdPath(String idPath)
           
 void setFormId(String id)
           
 boolean shouldFocusForm()
           
 
Methods inherited from class java.lang.Object
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 componentId,
                          boolean autoSubmit)
Creates a new listener binding.

Parameters:
methodName - The method to invoke.

EventBoundListener

public EventBoundListener(String methodName,
                          String formId,
                          boolean validateForm,
                          String componentId,
                          boolean async,
                          boolean focus,
                          boolean autoSubmit)
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.

EventBoundListener

public EventBoundListener(String methodName,
                          String formId,
                          boolean validateForm,
                          String componentId,
                          boolean async,
                          boolean focus)
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

setFormId

public void setFormId(String id)

getMethodName

public String getMethodName()
Returns:
the methodName

getComponentId

public String getComponentId()
Returns:
the componentId

setComponentId

public void setComponentId(String id)

setComponentIdPath

public void setComponentIdPath(String idPath)

isValidateForm

public boolean isValidateForm()
Returns:
the validateForm

isAsync

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

Returns:
True if listener is asynchronous.

shouldFocusForm

public boolean shouldFocusForm()

isAutoSubmit

public boolean isAutoSubmit()

getComponentIdPath

public String getComponentIdPath()

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.