org.apache.tapestry.link
Class DirectLinkWorker

java.lang.Object
  extended by org.apache.tapestry.link.DirectLinkWorker
All Implemented Interfaces:
ComponentRenderWorker

public class DirectLinkWorker
extends Object
implements ComponentRenderWorker

Manages connecting IDirect components that also implement the ILinkComponent interface to JavaScript asynchronous IO operations when any of the shared parameters of IDirect are specified that relate to asynchronous operations.

Author:
jkuhnert

Constructor Summary
DirectLinkWorker()
          Default constructor, does nothing.
 
Method Summary
 void initialize()
          Needs to be invoked to initialize resources used.
 void renderBody(IRequestCycle cycle, Body component)
          Special render for handling html element targets.
 void renderComponent(IRequestCycle cycle, IComponent component)
          Invoked just after the components render call, giving services implementing the ComponentRenderWorker interface a guaranteed state to work off of.
 void setClassResolver(ClassResolver resolver)
          Auto-Wire injected.
 void setScript(String path)
           
 void setScriptSource(IScriptSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectLinkWorker

public DirectLinkWorker()
Default constructor, does nothing.

Method Detail

renderComponent

public void renderComponent(IRequestCycle cycle,
                            IComponent component)
Invoked just after the components render call, giving services implementing the ComponentRenderWorker interface a guaranteed state to work off of.

Specified by:
renderComponent in interface ComponentRenderWorker
Parameters:
cycle - The associated request for this render.
component - The component that has just been rendered.

renderBody

public void renderBody(IRequestCycle cycle,
                       Body component)
Special render for handling html element targets. This is invoked just after the body component renders its body, but before the script data is written out.

Specified by:
renderBody in interface ComponentRenderWorker
Parameters:
cycle - The associated request cycle.
component - The Body component, which holds the needed PageRenderSupport object.

initialize

public void initialize()
Needs to be invoked to initialize resources used.


setScriptSource

public void setScriptSource(IScriptSource source)

setScript

public void setScript(String path)

setClassResolver

public void setClassResolver(ClassResolver resolver)
Auto-Wire injected.

Parameters:
resolver -


Copyright © 2006 Apache Software Foundation. All Rights Reserved.