@Override protected void onInitialize() { super.onInitialize(); add(behavior = new PopoverBehavior(titleModel, contentModel)); popover = new Popover(this, getTitleModel(), getContentModel()); }
@Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); tag.put("data-content", newContent()); }
public FieldPanel<T> setTitle(final String title, final boolean html) { this.title = title; field.add(new PopoverBehavior( Model.<String>of(), title == null ? Model.<String>of() : Model.of(title), new PopoverConfig().withHtml(html).withHoverTrigger().withPlacement( index.getObject() != null && index.getObject() == 0 ? TooltipConfig.Placement.bottom : this instanceof AjaxCheckBoxPanel ? TooltipConfig.Placement.right : TooltipConfig.Placement.top))); return this; }
if (jobTO.isRunning()) { controls = new Fragment("controls", "runningFragment", this); controls.add(new Label("status", Model.of()).add(new PopoverBehavior( Model.<String>of(), Model.of("<pre>" + (jobTO.getStatus() == null ? StringUtils.EMPTY : jobTO.getStatus()) + "</pre>"),
.withHtml(true); WebMarkupContainer legend = new WebMarkupContainer("legend"); legend.add(new PopoverBehavior(new ResourceModel("legend"), new StringResourceModel("legend.content", legend), config)); agreementResults.add(legend);