org.apache.tapestry.dojo
Class AjaxShellDelegate

java.lang.Object
  extended by org.apache.tapestry.dojo.AjaxShellDelegate
All Implemented Interfaces:
IRender

public class AjaxShellDelegate
extends Object
implements IRender

The default rendering delegate responseible for include the dojo sources into the Shell component.

Author:
jkuhnert

Field Summary
static String BROWSER_LOG_CRITICAL
          Client side critical log level.
static String BROWSER_LOG_DEBUG
          Client side debug log level.
static String BROWSER_LOG_ERROR
          Client side error log level.
static String BROWSER_LOG_INFO
          Client side info log level.
static String BROWSER_LOG_WARNING
          Client side warning log level.
 
Constructor Summary
AjaxShellDelegate()
           
 
Method Summary
 void render(IMarkupWriter writer, IRequestCycle cycle)
          The principal rendering/rewinding method.
 void setAssetService(IEngineService service)
          Injected asset service.
 void setDebug(boolean debug)
          Allows for turning browser debugging on/off.
 void setDebugContainerId(String debugContainerId)
          Sets the html element node id of the element you would like all browser debug content to go to.
 void setDojoPath(IAsset dojoPath)
          Sets the dojo baseRelativePath value.
 void setDojoSource(IAsset dojoSource)
          Sets a valid path to the base dojo javascript installation directory.
 void setLogLevel(String level)
          Sets the dojo logging level.
 void setParseWidgets(boolean parseWidgets)
          Tells dojo whether or not to parse widgets by traversing the entire dom node of your document.
 void setTapestrySource(IAsset tapestrySource)
          Sets a valid base path to resolve tapestry.js.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROWSER_LOG_DEBUG

public static final String BROWSER_LOG_DEBUG
Client side debug log level.

See Also:
Constant Field Values

BROWSER_LOG_INFO

public static final String BROWSER_LOG_INFO
Client side info log level.

See Also:
Constant Field Values

BROWSER_LOG_WARNING

public static final String BROWSER_LOG_WARNING
Client side warning log level.

See Also:
Constant Field Values

BROWSER_LOG_ERROR

public static final String BROWSER_LOG_ERROR
Client side error log level.

See Also:
Constant Field Values

BROWSER_LOG_CRITICAL

public static final String BROWSER_LOG_CRITICAL
Client side critical log level.

See Also:
Constant Field Values
Constructor Detail

AjaxShellDelegate

public AjaxShellDelegate()
Method Detail

render

public void render(IMarkupWriter writer,
                   IRequestCycle cycle)
The principal rendering/rewinding method. This will cause the receiving component to render its top level elements (HTML text and components).

Renderring and rewinding are the exact same process. The same code that renders must be able to restore state by going through the exact same operations (even though the output is discarded).

Specified by:
render in interface IRender

setLogLevel

public void setLogLevel(String level)
Sets the dojo logging level. Similar to log4j style log levels.

Parameters:
level - The string constant for the level, valid values are:


setDebug

public void setDebug(boolean debug)
Allows for turning browser debugging on/off.

Parameters:
debug - If false, no logging output will be written.

setDebugContainerId

public void setDebugContainerId(String debugContainerId)
Sets the html element node id of the element you would like all browser debug content to go to.

Parameters:
debugContainerId - the debugContainerId to set

setParseWidgets

public void setParseWidgets(boolean parseWidgets)
Tells dojo whether or not to parse widgets by traversing the entire dom node of your document. It is highly reccomended that you keep this at its default value of false.

Parameters:
parseWidgets - the parseWidgets to set

setDojoSource

public void setDojoSource(IAsset dojoSource)
Sets a valid path to the base dojo javascript installation directory.

Parameters:
dojoSource -

setDojoPath

public void setDojoPath(IAsset dojoPath)
Sets the dojo baseRelativePath value.

Parameters:
dojoPath -

setTapestrySource

public void setTapestrySource(IAsset tapestrySource)
Sets a valid base path to resolve tapestry.js.

Parameters:
tapestrySource -

setAssetService

public void setAssetService(IEngineService service)
Injected asset service.

Parameters:
service -


Copyright © 2006 Apache Software Foundation. All Rights Reserved.