|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.internal.services.PageRenderSupportImpl
public class PageRenderSupportImpl
| Constructor Summary | |
|---|---|
PageRenderSupportImpl(DocumentHeadBuilder builder,
SymbolSource symbolSource,
AssetSource assetSource,
String... coreScripts)
|
|
| Method Summary | |
|---|---|
void |
addClasspathScriptLink(String... classpaths)
Used to add scripts that are stored on the classpath. |
void |
addScript(String format,
Object... arguments)
Adds a script statement to the page's script block (which appears at the end of the page, just before the </body> tag). |
void |
addScriptLink(Asset... scriptAssets)
Adds one or more new script assets to the page. |
void |
addStylesheetLink(Asset stylesheet,
String media)
Adds a link to a CSS stylesheet. |
String |
allocateClientId(ComponentResources resources)
As with PageRenderSupport.allocateClientId(String) but uses the id of the component extracted from the resources. |
String |
allocateClientId(String id)
Allocates a unique id based on the component's id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageRenderSupportImpl(DocumentHeadBuilder builder,
SymbolSource symbolSource,
AssetSource assetSource,
String... coreScripts)
builder - Used to assemble JavaScript includes and snippetssymbolSource - Used to example symbols (in {@linkplain #addClasspathScriptLink(String...) in classpath
scripts)assetSource - Used to convert classpath scripts to AssetscoreScripts - core scripts (evaluated as classpaths scripts) that are added to any page that includes a
script link or script block| Method Detail |
|---|
public String allocateClientId(String id)
PageRenderSupport
allocateClientId in interface PageRenderSupportid - the component id from which a unique id will be generated
IdAllocatorpublic String allocateClientId(ComponentResources resources)
PageRenderSupportPageRenderSupport.allocateClientId(String) but uses the id of the component extracted from the resources.
allocateClientId in interface PageRenderSupportresources - of the component which requires an id
public void addScriptLink(Asset... scriptAssets)
PageRenderSupport
addScriptLink in interface PageRenderSupportscriptAssets - asset to the script to addpublic void addClasspathScriptLink(String... classpaths)
PageRenderSupport
addClasspathScriptLink in interface PageRenderSupportclasspaths - array of paths. Symbols in the paths are expanded, then the paths are each converted into an
asset.
public void addScript(String format,
Object... arguments)
PageRenderSupport
addScript in interface PageRenderSupportformat - base string format, to be passed through String.formatarguments - additional arguments formatted to form the final script
public void addStylesheetLink(Asset stylesheet,
String media)
PageRenderSupport
addStylesheetLink in interface PageRenderSupportstylesheet - the asset referencing the stylesheetmedia - the media value for the stylesheet, or null to not specify a specific media type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||