All Implemented Interfaces:
Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable

public abstract class RichPopoverBehavior extends PopoverBehavior
A rich popover implementation that uses a component as body.
Author:
miha
See Also:
  • Constructor Details

    • RichPopoverBehavior

      public RichPopoverBehavior(IModel<String> label)
      Construct.
      Parameters:
      label - popover title
    • RichPopoverBehavior

      public RichPopoverBehavior(IModel<String> label, PopoverConfig config)
      Construct.
      Parameters:
      label - popover title
      config - popover configuration
  • Method Details

    • newContent

      protected final String newContent()
      Overrides:
      newContent in class PopoverBehavior
      Returns:
      the popover content
    • cleanContent

      protected String cleanContent(String content)
      cleans the final markup
      Parameters:
      content - the markup to clean up
      Returns:
      cleaned markup.
    • newBodyComponent

      public abstract Component newBodyComponent(String markupId)
      creates a new popover body component
      Parameters:
      markupId - the markup id that the body component must be use
      Returns:
      new body component