Class Picture

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

public class Picture extends WebMarkupContainer
A component which displays localizable image resources within source and image elements as responsive image. Elements are added with addImage / addSource.
Author:
Tobias Soloschenko
See Also:
  • Constructor Details

    • Picture

      public Picture(String id)
      Creates a picture component
      Parameters:
      id - the id of the picture component
    • Picture

      public Picture(String id, IModel<?> model)
      Creates a picture component
      Parameters:
      id - the id of the picture component
      model - the component's model
  • Method Details