|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResourceManager
Generic resource manager.
| Field Summary | |
|---|---|
static Boolean |
DEFAULT_ADD_RESOURCES
Add resources status. |
static String |
FEATURE_ADD_RESOURCES
Add resources (i.e. specrunner.js and specrunner.css) to final result. |
| Method Summary | |
|---|---|
IResource |
addCss(String path,
boolean classpath,
EType ref)
Adds a CSS to the head end. |
IResource |
addCss(String path,
boolean classpath,
EType ref,
Position position)
Adds a CSS specified by path to a given position. |
void |
addDefaultCss()
Add default CSS files. |
void |
addDefaultJs()
Add default JavaScript files. |
IResource |
addJs(String path,
boolean classpath,
EType ref)
Adds a JS specified by path to a given position. |
IResource |
addJs(String path,
boolean classpath,
EType ref,
Position position)
Adds a JS specified by path to a given position. |
ISource |
getParent()
The resource manager parent source. |
void |
merge(IResourceManager resources)
Import resources from other manager. |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Field Detail |
|---|
static final String FEATURE_ADD_RESOURCES
static final Boolean DEFAULT_ADD_RESOURCES
| Method Detail |
|---|
ISource getParent()
void addDefaultCss()
throws ResourceException
ResourceException - On add errors.
void addDefaultJs()
throws ResourceException
ResourceException - On add errors.
IResource addCss(String path,
boolean classpath,
EType ref)
throws ResourceException
path - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.
ResourceException - On add errors.
IResource addCss(String path,
boolean classpath,
EType ref,
Position position)
throws ResourceException
path - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.position - The position to place the resource in the source reference.
ResourceException - On add errors.
IResource addJs(String path,
boolean classpath,
EType ref)
throws ResourceException
path - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.
ResourceException - On add errors.
IResource addJs(String path,
boolean classpath,
EType ref,
Position position)
throws ResourceException
path - The reference to the resource.classpath - true, to find in classpath, false, to find in file system.ref - The resource type.position - The position to place the resource in the source reference.
ResourceException - On add errors.void merge(IResourceManager resources)
resources - Resources to the copied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||