public class ResourceManagerImpl extends LinkedList<IResource> implements IResourceManager
modCountDEFAULT_ADD_DEBUG_CSS, DEFAULT_ADD_RESOURCES, DEFAULT_CSS, DEFAULT_DEBUG_CSS, DEFAULT_JS, FEATURE_ADD_DEBUG_CSS, FEATURE_ADD_RESOURCES| Constructor and Description |
|---|
ResourceManagerImpl(ISource parent)
Creates a resource manager to a source.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IResource resource) |
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.
|
void |
setParent(ISource parent)
Set resource manager parent.
|
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic ResourceManagerImpl(ISource parent)
parent - The parent.public ISource getParent()
IResourceManagergetParent in interface IResourceManagerpublic void setParent(ISource parent)
parent - The parent.public void addDefaultCss()
throws ResourceException
IResourceManageraddDefaultCss in interface IResourceManagerResourceException - On add errors.public void addDefaultJs()
throws ResourceException
IResourceManageraddDefaultJs in interface IResourceManagerResourceException - On add errors.public boolean add(IResource resource)
public IResource addCss(String path, boolean classpath, EType ref) throws ResourceException
IResourceManageraddCss in interface IResourceManagerpath - 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.public IResource addCss(String path, boolean classpath, EType ref, Position position) throws ResourceException
IResourceManageraddCss in interface IResourceManagerpath - 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.public IResource addJs(String path, boolean classpath, EType ref) throws ResourceException
IResourceManageraddJs in interface IResourceManagerpath - 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.public IResource addJs(String path, boolean classpath, EType ref, Position position) throws ResourceException
IResourceManageraddJs in interface IResourceManagerpath - 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.public void merge(IResourceManager resources)
IResourceManagermerge in interface IResourceManagerresources - Resources to the copied.Copyright © 2016. All rights reserved.