public interface IResourceManager extends List<IResource>
| Modifier and Type | Field and Description |
|---|---|
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.
|
static String |
FEATURE_ADD_RESOURCES
Add resources (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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.Copyright © 2016. All rights reserved.