public class PackageResourceReferences extends Object
| Constructor and Description |
|---|
PackageResourceReferences() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCssFiles(org.apache.wicket.markup.head.IHeaderResponse response,
Class<?> scope,
String... cssFilenames)
Adds the given css files to the given response object in the given scope.
|
static void |
addJsFiles(org.apache.wicket.markup.head.IHeaderResponse response,
Class<?> scope,
String... jsFilenames)
Adds the given javascript files to the given response object in the given scope.
|
static PackageResourceReferences |
getInstance()
Gets the single instance of PackageResourceReferences.
|
Set<PackageResourceReferenceWrapper> |
getPackageResourceReference(Class<?> componentClass)
Gets the package resource reference.
|
Map<Class<?>,Set<PackageResourceReferenceWrapper>> |
getPackageResourceReferenceMap()
Gets the package resource reference map.
|
void |
initializeResources(List<String> packageNames)
Initialize resources from the given packages.
|
void |
initializeResources(String packageName)
Initialize resources from the given package.
|
void |
initializeResources(String[] packageNames)
Initialize resources from the given packages.
|
public static void addCssFiles(org.apache.wicket.markup.head.IHeaderResponse response,
Class<?> scope,
String... cssFilenames)
response - the IHeaderResponsescope - The scope of the css files.cssFilenames - The css file names.public static void addJsFiles(org.apache.wicket.markup.head.IHeaderResponse response,
Class<?> scope,
String... jsFilenames)
response - the IHeaderResponsescope - The scope of the javascript files.jsFilenames - The javascript file names.public static PackageResourceReferences getInstance()
public Set<PackageResourceReferenceWrapper> getPackageResourceReference(Class<?> componentClass)
componentClass - the component classpublic Map<Class<?>,Set<PackageResourceReferenceWrapper>> getPackageResourceReferenceMap()
public void initializeResources(String packageName) throws ClassNotFoundException, IOException
packageName - the package nameClassNotFoundException - occurs if a given class cannot be located by the specified class loaderIOException - Signals that an I/O exception has occurred.public void initializeResources(String[] packageNames) throws ClassNotFoundException, IOException
packageNames - the package namesClassNotFoundException - occurs if a given class cannot be located by the specified class loaderIOException - Signals that an I/O exception has occurred.public void initializeResources(List<String> packageNames) throws ClassNotFoundException, IOException
packageNames - the package namesClassNotFoundException - occurs if a given class cannot be located by the specified class loaderIOException - Signals that an I/O exception has occurred.Copyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.