public class ExtensionResourceLoader extends AbstractResourceLoader
Constructor and Description |
---|
ExtensionResourceLoader(Extension extension,
String base)
This constructor creates a new ExtensionResourceLoader for the given
extension.
|
Modifier and Type | Method and Description |
---|---|
Image |
getImage(String name)
Returns an Image, which is created by the specified Filename.
|
URI |
getResource(String resource)
This method returns a URI to the resource with the given relative path.
|
URI |
getResource(String base,
String resource)
This method returns an URI to the resource with the given relative
path and the given base.
|
public ExtensionResourceLoader(Extension extension, String base)
extension
- extension as Extensionbase
- relative path from the extension to the resource directorypublic URI getResource(String resource)
public URI getResource(String base, String resource)
public Image getImage(String name)
AbstractResourceLoader
getImage
in interface IResourceLoader
getImage
in class AbstractResourceLoader
name
- has to be the Filename without .gif