Class RAPImageRegistryService

  • All Implemented Interfaces:
    java.io.Serializable, ImageRegistryService, org.eclipse.rap.rwt.service.UISessionListener, org.eclipse.swt.internal.SerializableCompatibility

    public class RAPImageRegistryService
    extends java.lang.Object
    implements ImageRegistryService, org.eclipse.rap.rwt.service.UISessionListener
    The RAP instance of the ImageRegistryService.
    Author:
    Eugen Neufeld
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeDestroy​(org.eclipse.rap.rwt.service.UISessionEvent event)  
      org.eclipse.swt.graphics.Image getImage​(java.net.URL url)
      Retrieve an Image based on an URL.
      org.eclipse.swt.graphics.Image getImage​(org.osgi.framework.Bundle bundle, java.lang.String path)
      Retrieve an Image based on a Bundle and a path within.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RAPImageRegistryService

        public RAPImageRegistryService()
        Constructor.
    • Method Detail

      • beforeDestroy

        public void beforeDestroy​(org.eclipse.rap.rwt.service.UISessionEvent event)
        Specified by:
        beforeDestroy in interface org.eclipse.rap.rwt.service.UISessionListener
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(org.osgi.framework.Bundle bundle,
                                                       java.lang.String path)
        Description copied from interface: ImageRegistryService
        Retrieve an Image based on a Bundle and a path within.
        Specified by:
        getImage in interface ImageRegistryService
        Parameters:
        bundle - the Bundle to get the image from
        path - the path to the image within the bundle
        Returns:
        the loaded Image
      • getImage

        public org.eclipse.swt.graphics.Image getImage​(java.net.URL url)
        Description copied from interface: ImageRegistryService
        Retrieve an Image based on an URL.
        Specified by:
        getImage in interface ImageRegistryService
        Parameters:
        url - the URL to load the image from
        Returns:
        the loaded Image