Class InlineImage

All Implemented Interfaces:
Serializable, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class InlineImage extends WebComponent
The inline image is used to embed the complete image content within a HTML document.
Author:
Tobias Soloschenko
See Also:
  • Constructor Details

    • InlineImage

      public InlineImage(String id, PackageResourceReference packageResourceReference)
      Creates an inline image
      Parameters:
      id - the id
      packageResourceReference - the package resource stream of the image
    • InlineImage

      public InlineImage(String id, IModel<?> model, PackageResourceReference packageResourceReference)
      Creates an inline image
      Parameters:
      id - the id
      model - the model of the inline image
      packageResourceReference - the package resource stream of the image
  • Method Details

    • onComponentTag

      protected void onComponentTag(ComponentTag tag)
      Renders the complete image tag with the base64 encoded content.
      Overrides:
      onComponentTag in class Component