Interface AbstractImageStaticSource.HasResource

All Known Subinterfaces:
AbstractImageStaticSource.HasImageStaticSourceOptions
All Known Implementing Classes:
ImageStaticSource, NoOpImageStaticSource
Enclosing class:
AbstractImageStaticSource

public static interface AbstractImageStaticSource.HasResource
Interface to be implemented by sources that can display image from classpath resources.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.server.StreamResource
     
    void
    setResource(com.vaadin.flow.server.StreamResource resource)
    Sets stream resource.
  • Method Details

    • getResource

      com.vaadin.flow.server.StreamResource getResource()
      Returns:
      stream resource or null if not set
    • setResource

      void setResource(com.vaadin.flow.server.StreamResource resource)
      Sets stream resource.
      Parameters:
      resource - stream resource to set