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

public class PageHeader extends Panel
#### Description A simple shell for an h1 to appropriately space out and segment sections of content on a page. It can utilize the h1's default small, element as well most other components (with additional styles). Page header css class was dropped in Bootstrap 4, but we can use set of utility classes to create same behaviour. See https://getbootstrap.com/docs/4.1/migration/#typography #### Usage ```java PageHeader pageHeader = new PageHeader("id", Model.of("label text")) .setSubtitle(Model.of("subtitle")); // add a sub title (optional) add(pageHeader); ``` ```html <div wicket:id="id"></div> ```
See Also:
  • Constructor Details

    • PageHeader

      public PageHeader(String markupId)
      Construct.
      Parameters:
      markupId - The markup id
    • PageHeader

      public PageHeader(String markupId, IModel<String> model)
      Construct.
      Parameters:
      markupId - The markup id
      model - The label of the page header
  • Method Details

    • onComponentTag

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

      protected void onConfigure()
      Overrides:
      onConfigure in class Component
    • setSubtitle

      public final PageHeader setSubtitle(String subtitle)
      sets the subtitle.
      Parameters:
      subtitle - The subtitle as string
      Returns:
      this component's instance
    • setSubtitle

      public final PageHeader setSubtitle(IModel<String> subtitle)
      sets the subtitle model.
      Parameters:
      subtitle - The subtitle as model
      Returns:
      this component's instance