Class 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 Detail

      • AbstractResourceFactory

        public AbstractResourceFactory()
    • 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