net.sf.tacos.ajax.components
Class Refresh

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

public abstract class Refresh
extends AbstractComponent
implements IDirect

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

Author:
jkuhnert

Constructor Summary
Refresh()
           
 
Method Summary
abstract  IEngineService getAjaxEngineService()
          Injected ajax service
abstract  IScript getScript()
          Injected script invoked when our link is clicked
abstract  Collection getUpdateBlocks()
          Html blocks to update in request
abstract  Collection getUpdateComponents()
          Components to update in request
abstract  String getUpdateObject()
          Javascript object to call ajaxUpdate on
abstract  boolean isDirect()
          Whether or not to invoke targeted components directly
abstract  boolean isProcessScripts()
          Whether or not javascript should process scripts embedded in the response
 boolean isStateful()
          
protected  void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
          
 void trigger(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, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, 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 org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, 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 IScript getScript()
Injected script invoked when our link is clicked


getAjaxEngineService

public abstract IEngineService getAjaxEngineService()
Injected ajax service


getUpdateComponents

public abstract Collection getUpdateComponents()
Components to update in request


getUpdateBlocks

public abstract Collection getUpdateBlocks()
Html blocks to update in request


isProcessScripts

public abstract boolean isProcessScripts()
Whether or not javascript should process scripts embedded in the response


getUpdateObject

public abstract String getUpdateObject()
Javascript object to call ajaxUpdate on


isDirect

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


renderComponent

protected void renderComponent(IMarkupWriter writer,
                               IRequestCycle cycle)


isStateful

public boolean isStateful()

Specified by:
isStateful in interface IDirect

trigger

public void trigger(IRequestCycle cycle)

Specified by:
trigger in interface IDirect