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

public class ThumbnailBorder extends Border
Thumbnails are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.

By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup. With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.

Author:
miha
See Also:
  • Constructor Details

    • ThumbnailBorder

      public ThumbnailBorder(String id)
      Construct.
      Parameters:
      id - the component id
    • ThumbnailBorder

      public ThumbnailBorder(String id, IModel<String> model)
      Construct.
      Parameters:
      id - the component id
      model - the default image url
  • Method Details

    • onComponentTag

      protected void onComponentTag(ComponentTag tag)
      Overrides:
      onComponentTag in class Component
    • setTitle

      public ThumbnailBorder setTitle(IModel<String> title)
      sets the thumbnail title
      Parameters:
      title - new thumbnail title
      Returns:
      this instance for chaining
    • setTitle

      public ThumbnailBorder setTitle(String title)
      sets the thumbnail title
      Parameters:
      title - new thumbnail title
      Returns:
      this instance for chaining
    • onConfigure

      protected void onConfigure()
      Overrides:
      onConfigure in class Border