net.sf.tacos.ajax.components
Class Refresh

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by net.sf.tacos.ajax.components.Refresh
All Implemented Interfaces:
AjaxInvocation, Locatable, LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirect, org.apache.tapestry.IRender

public abstract class Refresh
extends org.apache.tapestry.AbstractComponent
implements AjaxInvocation, org.apache.tapestry.IDirect

Performs a refresh of the specified component/element id's on a page/component.

Author:
jkuhnert

Constructor Summary
Refresh()
           
 
Method Summary
 org.apache.tapestry.engine.ILink getAjaxLink()
          Generates ajax link for form submission via javascript
abstract  org.apache.tapestry.IScript getScript()
          Injected script invoked when our link is clicked
abstract  boolean isDirect()
          Whether or not to invoke targeted components directly
 boolean isStateful()
          
protected  void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
          
 void trigger(org.apache.tapestry.IRequestCycle cycle)
          
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.tacos.ajax.AjaxInvocation
getAjaxEngine, getBackLink, getEffects, getEncodingType, getForwardLink, getPopup, getPreEffects, getStatusElement, getUpdateComponents, getUpdateObject
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

Refresh

public Refresh()
Method Detail

getScript

public abstract org.apache.tapestry.IScript getScript()
Injected script invoked when our link is clicked


isDirect

public abstract boolean isDirect()
Whether or not to invoke targeted components directly


getAjaxLink

public org.apache.tapestry.engine.ILink getAjaxLink()
Generates ajax link for form submission via javascript

Specified by:
getAjaxLink in interface AjaxInvocation
Returns:
ILink to be used in async io javascript calls

renderComponent

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

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

isStateful

public boolean isStateful()

Specified by:
isStateful in interface org.apache.tapestry.IDirect

trigger

public void trigger(org.apache.tapestry.IRequestCycle cycle)

Specified by:
trigger in interface org.apache.tapestry.IDirect