Class BootstrapGenericPanel<T>

Type Parameters:
T - the type of the panel's model object
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,GenericPanel<T>>, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class BootstrapGenericPanel<T> extends GenericPanel<T>
A convenient implementation of the Bootstrap-styled Card of a Wicket GenericPanel. documentation: https://getbootstrap.com/docs/5.3/components/card/ Implement as you would a standard Wicket GenericPanel. Adding components to this panel will insert them below the markup for the body and above the markup for the footer, per the Bootstrap documentation.
Author:
Eric Hamel eric.hamel@me.com
See Also:
  • Constructor Details

    • BootstrapGenericPanel

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

      public BootstrapGenericPanel(String id, PanelType panelType)
      Construct.
      Parameters:
      id - the component id
      panelType - styling of the panel
    • BootstrapGenericPanel

      public BootstrapGenericPanel(String id, IModel<T> model, IModel<String> panelTitleModel)
      Construct.
      Parameters:
      id - the component id
      model - the component model
      panelTitleModel - the title model
    • BootstrapGenericPanel

      public BootstrapGenericPanel(String id, IModel<T> model, IModel<String> panelTitleModel, PanelType panelType)
      Construct.
      Parameters:
      id - the component id
      model - the component model
      panelTitleModel - the title model
      panelType - styling of the panel
  • Method Details

    • withPanelType

      public BootstrapGenericPanel<T> withPanelType(PanelType panelType)
      Parameters:
      panelType -
      Returns:
      this for chaining
    • onInitialize

      protected void onInitialize()
      Overrides:
      onInitialize in class MarkupContainer
    • onComponentTag

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

      public IModel<String> getTitleModel()
      Getter for Title Model.
      Returns:
      the Title Model
    • newTitleLabel

      protected Label newTitleLabel(String id, IModel<T> model, IModel<String> titleModel)
      Override this method to provide your own implementation of a Label.
      Parameters:
      id - the component id
      model - the component model
      titleModel - the title model
      Returns:
      the label to use
    • newBodyPanel

      protected Panel newBodyPanel(String id, IModel<T> model)
      Override this method to provide a body for this panel..
      Parameters:
      id - the component id
      model - the component model
      Returns:
      the panel to use
    • newFooterPanel

      protected Panel newFooterPanel(String id, IModel<T> model)
      Override this method to provide a footer for this panel.
      Parameters:
      id -
      model -
      Returns:
    • newTopImage

      protected Component newTopImage(String id, IModel<T> model)
      Override this method to provide top image for this panel.
      Parameters:
      id - the image identifier
      model - the panel model
      Returns:
      image to show in panel