public class RAPImageRegistryService extends Object implements ImageRegistryService, org.eclipse.rap.rwt.service.UISessionListener
Constructor and Description |
---|
RAPImageRegistryService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent event) |
org.eclipse.swt.graphics.Image |
getImage(org.osgi.framework.Bundle bundle,
String path)
Retrieve an
Image based on a Bundle and a path within. |
org.eclipse.swt.graphics.Image |
getImage(URL url)
Retrieve an
Image based on an URL . |
public void beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent event)
beforeDestroy
in interface org.eclipse.rap.rwt.service.UISessionListener
public org.eclipse.swt.graphics.Image getImage(org.osgi.framework.Bundle bundle, String path)
ImageRegistryService
Image
based on a Bundle and a path within.getImage
in interface ImageRegistryService
bundle
- the Bundle to get the image frompath
- the path to the image within the bundleImage
public org.eclipse.swt.graphics.Image getImage(URL url)
ImageRegistryService
Image
based on an URL
.getImage
in interface ImageRegistryService
url
- the URL
to load the image fromImage
Copyright © 2019. All rights reserved.