Class GalleryLoaderSupport
- java.lang.Object
-
- it.tidalwave.northernwind.frontend.ui.component.gallery.spi.loader.GalleryLoaderSupport
-
- All Implemented Interfaces:
it.tidalwave.northernwind.frontend.ui.component.gallery.spi.GalleryLoader
- Direct Known Subclasses:
SlideShowProPlayerGalleryLoader
public abstract class GalleryLoaderSupport extends java.lang.Object implements it.tidalwave.northernwind.frontend.ui.component.gallery.spi.GalleryLoader
A support implementation forGalleryLoader
, provides a default factory method for creating galleryGalleryViewController.GalleryItem
s which delegates to aMediaMetadataProvider
.- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GalleryLoaderSupport(org.springframework.beans.factory.BeanFactory beanFactory, ResourceProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GalleryViewController.GalleryItem
createItem(it.tidalwave.util.Id mediaId)
Creates a galleryGalleryViewController.GalleryItem
for the given media id.
-
-
-
Constructor Detail
-
GalleryLoaderSupport
protected GalleryLoaderSupport(@Nonnull org.springframework.beans.factory.BeanFactory beanFactory, @Nonnull ResourceProperties properties)
-
-
Method Detail
-
createItem
@Nonnull public GalleryViewController.GalleryItem createItem(@Nonnull it.tidalwave.util.Id mediaId)
Creates a galleryGalleryViewController.GalleryItem
for the given media id.- Parameters:
mediaId
- the media id- Returns:
- the gallery
Item
-
-