|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.dojo.AjaxShellDelegate
public class AjaxShellDelegate
The default rendering delegate responsible for include the dojo sources in
to the Shell
component.
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. |
protected String[] |
SUPPORTED_LOCALES
Default list of pre-bundled dojo supported locales. |
Constructor Summary | |
---|---|
AjaxShellDelegate()
|
Method Summary | |
---|---|
protected boolean |
isLocaleSupported(String locale)
Checks if the provided locale string matches one of the predefined SUPPORTED_LOCALES
in the dojo javascript library. |
void |
render(IMarkupWriter writer,
IRequestCycle cycle)
The principal rendering/rewinding method. |
void |
setConsoleEnabled(boolean enabled)
Enables/disables the dojo.debug.console functionality which should redirect most logging messages to your browsers javascript console. |
void |
setDebug(boolean debug)
Allows for turning browser debugging on/off. |
void |
setDebugAtAllCosts(boolean value)
Turns off deep context level javascript debugging mode for dojo. |
void |
setDebugContainerId(String debugContainerId)
Sets the html element node id of the element you would like all browser debug content to go to. |
void |
setDojoFormSource(IAsset formSource)
|
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 |
setDojoWidgetSource(IAsset widgetSource)
|
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 |
setPreventBackButtonFix(boolean prevent)
Sets the dojo preventBackButtonFix djConfig configuration. |
void |
setSearchIds(String searchIds)
Provides a way to have dojo automatically parse a known set of page widgets without enabling full automatic parsing. |
void |
setTapestryPath(IAsset tapestryPath)
Sets the path to the tapestry javascript modules. |
void |
setTapestrySource(IAsset tapestrySource)
Sets a valid base path to resolve tapestry core.js. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BROWSER_LOG_DEBUG
public static final String BROWSER_LOG_INFO
public static final String BROWSER_LOG_WARNING
public static final String BROWSER_LOG_ERROR
public static final String BROWSER_LOG_CRITICAL
protected String[] SUPPORTED_LOCALES
Constructor Detail |
---|
public AjaxShellDelegate()
Method Detail |
---|
public void render(IMarkupWriter writer, IRequestCycle cycle)
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).
render
in interface IRender
protected boolean isLocaleSupported(String locale)
SUPPORTED_LOCALES
in the dojo javascript library.
locale
- The Dojo formatted locale string to check.
public void setLogLevel(String level)
level
- The string constant for the level, valid values
are:
public void setDebug(boolean debug)
debug
- If false, no logging output will be written.public void setDebugAtAllCosts(boolean value)
The default value is false if not set.
People should be wary of turning this on as it may cause problems under certain conditions, and you definitely don't ever want this on in production.
value
- If true deep debugging will be turned on.public void setDebugContainerId(String debugContainerId)
debugContainerId
- the debugContainerId to setpublic void setConsoleEnabled(boolean enabled)
The debug console is disabled by default. Currently known supported browsers are FireFox(having FireBug extension helps a great deal)/Opera/Safari.
enabled
- Whether or not the enable debug console.public void setPreventBackButtonFix(boolean prevent)
prevent
- Whether or not to prevent back button fix.public void setParseWidgets(boolean parseWidgets)
parseWidgets
- the parseWidgets to setpublic void setSearchIds(String searchIds)
searchIds
- the html ids within which to search for widgetspublic void setDojoSource(IAsset dojoSource)
dojoSource
- Path to dojo source directory core "dojo.js" file.public void setDojoFormSource(IAsset formSource)
public void setDojoWidgetSource(IAsset widgetSource)
public void setDojoPath(IAsset dojoPath)
dojoPath
- The base path to dojo directory.public void setTapestrySource(IAsset tapestrySource)
tapestrySource
- Main tapestry core.js file.public void setTapestryPath(IAsset tapestryPath)
tapestryPath
- The path to tapestry.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |