Package org.neotropic.util.visual.icons
Class IconGenerator<T>
- java.lang.Object
-
- org.neotropic.util.visual.icons.IconGenerator<T>
-
- Type Parameters:
T
- item type for which the icon is generated
- Direct Known Subclasses:
BasicTreeNodeIconGenerator
,ClassMetadataIconGenerator
,ClassNameIconGenerator
,ViewNodeIconGenerator
public abstract class IconGenerator<T> extends Object
Abstract class for generated icons for an item- Author:
- Johny Andres Ortega Ruiz <johny.ortega@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractResourceFactory
resourceFactory
-
Constructor Summary
Constructors Constructor Description IconGenerator()
IconGenerator(AbstractResourceFactory resourceFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract com.vaadin.flow.server.AbstractStreamResource
apply(T item)
Gets a stream resource for the item
-
-
-
Field Detail
-
resourceFactory
protected AbstractResourceFactory resourceFactory
-
-
Constructor Detail
-
IconGenerator
public IconGenerator(AbstractResourceFactory resourceFactory)
-
IconGenerator
public IconGenerator()
-
-
Method Detail
-
apply
public abstract com.vaadin.flow.server.AbstractStreamResource apply(T item)
Gets a stream resource for the item- Parameters:
item
- the item for which the icon is generated- Returns:
- the generated stream resource
-
-