Class AbstractResourceFactory
- java.lang.Object
-
- org.neotropic.util.visual.resources.AbstractResourceFactory
-
- Direct Known Subclasses:
ResourceFactory
public abstract class AbstractResourceFactory extends Object
Abstract class that defines the main methods to obtain different resources such as images, icons etc.- Author:
- Orlando Paz <orlando.paz@kuwaiba.org>
-
-
Constructor Summary
Constructors Constructor Description AbstractResourceFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract com.vaadin.flow.server.StreamResource
getClassIcon(String className)
Builds and caches an icon of a given class.abstract com.vaadin.flow.server.StreamResource
getClassSmallIcon(String className)
Gets or builds (but doesn't caches) the small icon of the given class name
-
-
-
Method Detail
-
getClassIcon
public abstract com.vaadin.flow.server.StreamResource getClassIcon(String className)
Builds and caches an icon of a given class.- Parameters:
className
- the class name of the icon will be built for- Returns:
- The cached resource
-
getClassSmallIcon
public abstract com.vaadin.flow.server.StreamResource getClassSmallIcon(String className)
Gets or builds (but doesn't caches) the small icon of the given class name- Parameters:
className
- The class name- Returns:
- The cached resource if it has been previously cached, or a generic black icon otherwise
-
-