Interface AbstractImageStaticSource.HasResource
- All Known Subinterfaces:
AbstractImageStaticSource.HasImageStaticSourceOptions
- All Known Implementing Classes:
ImageStaticSource,NoOpImageStaticSource
- Enclosing class:
AbstractImageStaticSource
@Deprecated(since="3.0",
forRemoval=true)
public static interface AbstractImageStaticSource.HasResource
Deprecated, for removal: This API element is subject to removal in a future version.
Interface to be implemented by sources that can display image from classpath resources.
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.server.StreamResourceDeprecated, for removal: This API element is subject to removal in a future version.useAbstractImageStaticSource.HasDownloadHandlerinsteadvoidsetResource(com.vaadin.flow.server.StreamResource resource) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getResource
Deprecated, for removal: This API element is subject to removal in a future version.useAbstractImageStaticSource.HasDownloadHandlerinstead- Returns:
- stream resource or
nullif not set
-
setResource
@Deprecated(since="3.0", forRemoval=true) void setResource(com.vaadin.flow.server.StreamResource resource) Deprecated, for removal: This API element is subject to removal in a future version.Sets stream resource.- Parameters:
resource- stream resource to set
-
AbstractImageStaticSource.HasDownloadHandlerinstead.