Uses of Interface
org.apache.tapestry5.Asset
Packages that use Asset
Package
Description
[INTERNAL USE ONLY] internal support classes; API subject to change.
[INTERNAL USE ONLY] support classes for binding; API subject to change
[INTERNAL USE ONLY] internal service classes; API subject to change
[INTERNAL USE ONLY] AJAX support services; API subject to change
Core services
Support for Javascript (and CSS), including dynamically-added JavaScript and
services that manage dynamically-added links to JavaScript (and CSS) assets.
Support for testing Tapestry pages
-
Uses of Asset in org.apache.tapestry5.internal
Fields in org.apache.tapestry5.internal with type parameters of type AssetModifier and TypeFieldDescriptionstatic Mapper<Asset,
StylesheetLink> TapestryInternalUtils.assetToStylesheetLink
Common mapper, used primarily withFlow.map(org.apache.tapestry5.func.Mapper)
-
Uses of Asset in org.apache.tapestry5.internal.bindings
Constructors in org.apache.tapestry5.internal.bindings with parameters of type Asset -
Uses of Asset in org.apache.tapestry5.internal.services
Classes in org.apache.tapestry5.internal.services that implement AssetMethods in org.apache.tapestry5.internal.services that return AssetModifier and TypeMethodDescriptionprotected Asset
AbstractAssetFactory.createAsset
(Resource resource, String folder, String resourcePath) ClasspathAssetFactory.createAsset
(Resource resource) ContextAssetFactory.createAsset
(Resource resource) ExternalUrlAssetFactory.createAsset
(Resource resource) AssetSourceImpl.getClasspathAsset
(String path) AssetSourceImpl.getClasspathAsset
(String path, Locale locale) AssetSourceImpl.getComponentAsset
(ComponentResources resources, String path, String libraryName) AssetSourceImpl.getContextAsset
(String path, Locale locale) AssetSourceImpl.getExpandedAsset
(String path) AssetSourceImpl.getUnlocalizedAsset
(String path) -
Uses of Asset in org.apache.tapestry5.internal.services.ajax
Methods in org.apache.tapestry5.internal.services.ajax with parameters of type AssetModifier and TypeMethodDescriptionJavaScriptSupportImpl.importJavaScriptLibrary
(Asset asset) JavaScriptSupportImpl.importStylesheet
(Asset stylesheet) -
Uses of Asset in org.apache.tapestry5.services
Methods in org.apache.tapestry5.services that return AssetModifier and TypeMethodDescriptionAssetFactory.createAsset
(Resource resource) Creates an instance of an asset.Finds the asset.AssetSource.getClasspathAsset
(String path) Obtains a classpath asset in the current locale (as defined by theThreadLocale
service).AssetSource.getClasspathAsset
(String path, Locale locale) Convenience for finding assets on the classpath.AssetSource.getComponentAsset
(ComponentResources resources, String path, String libraryName) Gets an asset that is used with, or injected into, a component, that will be exposed to the client.AssetSource.getContextAsset
(String path, Locale locale) Convenience for finding assets in the context.AssetSource.getExpandedAsset
(String path) As withAssetSource.getUnlocalizedAsset(String)
, but symbols in the path are expanded}.AssetSource.getUnlocalizedAsset
(String path) Find an asset but does not attempt to localize it. -
Uses of Asset in org.apache.tapestry5.services.javascript
Methods in org.apache.tapestry5.services.javascript that return types with arguments of type AssetModifier and TypeMethodDescriptionExtensibleJavaScriptStack.getJavaScriptLibraries()
JavaScriptStack.getJavaScriptLibraries()
Returns a list of localized assets for JavaScript libraries that form the stack.Methods in org.apache.tapestry5.services.javascript with parameters of type AssetModifier and TypeMethodDescriptionJavaScriptSupport.importJavaScriptLibrary
(Asset asset) Imports a JavaScript library as part of the rendered page.JavaScriptSupport.importStylesheet
(Asset stylesheet) A convenience method that wraps the Asset as aStylesheetLink
.Constructors in org.apache.tapestry5.services.javascript with parameters of type AssetModifierConstructorDescriptionStylesheetLink
(Asset asset) StylesheetLink
(Asset asset, StylesheetOptions options) -
Uses of Asset in org.apache.tapestry5.test
Methods in org.apache.tapestry5.test that return AssetModifier and TypeMethodDescriptionprotected final Asset
TapestryTestCase.mockAsset()
protected final Asset
Methods in org.apache.tapestry5.test with parameters of type AssetModifier and TypeMethodDescriptionprotected final void
TapestryTestCase.train_createAsset
(AssetFactory factory, Resource resource, Asset asset) protected final void
TapestryTestCase.train_getAsset
(AssetSource source, Resource root, String path, Locale locale, Asset asset) protected final void
TapestryTestCase.train_getClasspathAsset
(AssetSource source, String path, Locale locale, Asset asset) protected final void
TapestryTestCase.train_getClasspathAsset
(AssetSource source, String path, Asset asset) protected final void
TapestryTestCase.train_toClientURL
(Asset asset, String URL) Deprecated.Deprecated in 5.4 with no replacement.