|
||||||||||
| 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_DEBUG_CSS
Add debug css resource. |
static Boolean |
DEFAULT_ADD_RESOURCES
Add resources status. |
static String |
DEFAULT_CSS
Default CSS reference. |
static String |
DEFAULT_DEBUG_CSS
Default debug CSS reference. |
static String |
DEFAULT_JS
Default JS reference. |
static String |
FEATURE_ADD_DEBUG_CSS
Add debug css (i.e. sr_debug.js and sr_debug.css) to final result. |
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 DEFAULT_CSS
static final String DEFAULT_DEBUG_CSS
static final String DEFAULT_JS
static final String FEATURE_ADD_RESOURCES
static final Boolean DEFAULT_ADD_RESOURCES
static final String FEATURE_ADD_DEBUG_CSS
static final Boolean DEFAULT_ADD_DEBUG_CSS
| 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 | |||||||||