net.sf.tacos.components
Class EventListener

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by net.sf.tacos.components.EventListener
All Implemented Interfaces:
Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender

public abstract class EventListener
extends org.apache.tapestry.AbstractComponent

A component that acts like the EventListener annotation.

Author:
Andreas Andreou

Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
EventListener()
           
 
Method Summary
abstract  org.apache.tapestry.AbstractComponent getComponent()
          The required listener parameter.
abstract  org.apache.tapestry.pageload.IComponentVisitor getEventConnectionVisitor()
           
abstract  org.apache.tapestry.internal.event.IComponentEventInvoker getEventInvoker()
           
abstract  String[] getEvents()
          The list of events that should cause this listener to invoke.
 org.apache.tapestry.IForm getForm()
          Finds the form that encloses this component.
abstract  org.apache.tapestry.IActionListener getListener()
          The required listener parameter.
abstract  org.apache.tapestry.IScript getScript()
          Injected.
abstract  String[] getTargets()
          The unique IComponent ids of the targeted sources that this listener will be listening to events on.
abstract  boolean isAsync()
          Will either submit the form normally or asynchronously.
abstract  boolean isValidateForm()
          Whether or not to perform form validation.
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainedRenderers, getContainer, getExtendedId, getId, getIdPath, getInnerRenderers, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

EventListener

public EventListener()
Method Detail

isValidateForm

public abstract boolean isValidateForm()
Whether or not to perform form validation. Default is false.

Returns:
Whether or not to validate the form.

isAsync

public abstract boolean isAsync()
Will either submit the form normally or asynchronously. Default is asyncrhonous.

Returns:
True if form should be submitted asynchronously, false otherwise.

getEvents

public abstract String[] getEvents()
The list of events that should cause this listener to invoke. Ie events = {"onClick", "onOptionSelect"} etc..


getTargets

public abstract String[] getTargets()
The unique IComponent ids of the targeted sources that this listener will be listening to events on.


getListener

public abstract org.apache.tapestry.IActionListener getListener()
The required listener parameter.


getComponent

public abstract org.apache.tapestry.AbstractComponent getComponent()
The required listener parameter.


getScript

public abstract org.apache.tapestry.IScript getScript()
Injected.


getEventInvoker

public abstract org.apache.tapestry.internal.event.IComponentEventInvoker getEventInvoker()
Specified by:
getEventInvoker in interface org.apache.tapestry.IComponent
Overrides:
getEventInvoker in class org.apache.tapestry.AbstractComponent

getEventConnectionVisitor

public abstract org.apache.tapestry.pageload.IComponentVisitor getEventConnectionVisitor()

renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)

Specified by:
renderComponent in class org.apache.tapestry.AbstractComponent

getForm

public org.apache.tapestry.IForm getForm()
Finds the form that encloses this component.

Returns:


Copyright © 2005-2008 SourceForge.net. All Rights Reserved.