/** * @param title * @param text * @return this for chaining. * @see WicketUtils#addTooltip(org.apache.wicket.Component, String, String) */ public ContentMenuEntryPanel setTooltip(final IModel<String> title, final IModel<String> text) { WicketUtils.addTooltip(link, title, text); return this; }
/** * Sets tool-tip for the label. * @param tooltip * @return this for chaining. */ public HeadingPanel setTooltip(final String tooltip) { WicketUtils.addTooltip(label, tooltip); return this; } }
/** * Adds a SimpleAttributeModifier("title", ...) to the given component. * * @param component * @param text * @see #createTooltip(String, String) * @see #setStyleHasTooltip(Component) */ public static Component addTooltip(final Component component, final String text) { return addTooltip(component, text, true); }
/** * Adds a SimpleAttributeModifier("title", ...) to the given component. Does not modify the given tool tip text! * * @param component * @param title * @param text If the string contains "\n" characters then html=true and <br/> are used. */ public static Component addTooltip(final Component component, final IModel<String> title, final IModel<String> text) { return addTooltip(component, title, text, true); }
/** * @param content * @return this for chaining. */ public DropFileContainer setTooltip(final String content) { WicketUtils.addTooltip(main, content); return this; }
public SingleButtonPanel setTooltip(final String tooltip) { if (tooltip != null) { WicketUtils.addTooltip(button, tooltip); } return this; }
/** * @param tooltip * @return this for chaining. * @see WicketUtils#addTooltip(org.apache.wicket.Component, String) */ public ContentMenuEntryPanel setTooltip(final String tooltip) { WicketUtils.addTooltip(link, tooltip, true); return this; }
/** * Sets tool-tip for the label. * * @param tooltip * @return this for chaining. */ public Select2SingleChoicePanel<T> setTooltip(final String tooltip) { WicketUtils.addTooltip(select2Choice, tooltip); return this; }
/** * Sets tool-tip for the label. * @param tooltip * @return this for chaining. */ public CheckBoxButton setTooltip(final String title, final String text) { WicketUtils.addTooltip(labelContainer, title, text); return this; }
/** * Sets tool-tip for the label. * @param tooltip * @return this for chaining. */ public ButtonPanel setTooltip(final String tooltip) { WicketUtils.addTooltip(label, tooltip); return this; } }
/** * Sets tool-tip for the label. * @param tooltip * @return this for chaining. */ public AjaxEditableLabelPanel<T> setTooltip(final String tooltip) { WicketUtils.addTooltip(ajaxEditableLabel, tooltip); return this; } }
/** * Sets tool-tip for the label. * @param tooltip * @return this for chaining. */ public CheckBoxPanel setTooltip(final String title, final String text) { WicketUtils.addTooltip(this.parentContainer, title, text); return this; }
public ContextMenuEntry addTooltip(final Model<String> model) { WicketUtils.addTooltip(link, model); return this; }
/** * Sets tool-tip for the label. * @param tooltip * @return this for chaining. */ public DropDownChoicePanel<T> setTooltip(final String tooltip) { WicketUtils.addTooltip(dropDownChoice, tooltip); return this; }
/** * Should be called directly after {@link #init()}. * @param tooltipTitle * @param tooltipContent * @see WicketUtils#addTooltip(Component, IModel, IModel) */ public ModalDialog setCloseButtonTooltip(final IModel<String> tooltipTitle, final IModel<String> tooltipContent) { WicketUtils.addTooltip(this.closeButtonPanel.getButton(), tooltipTitle, tooltipContent); return this; }
private void init(final String id, final AbstractLink link, final String tooltip) { add(link); if (tooltip != null) { WicketUtils.addTooltip(link, tooltip); } }
/** * You need to use {@link AjaxEditableLabel#getLabel()}. * * @param label * @return */ public static Component addEditableLabelDefaultTooltip(final Component label) { return addTooltip(label, label.getString("form.ajaxEditableLabel.tooltip")); }
public TooltipImage(final String id, final ImageDef imageDef, final String tooltip) { super(id, imageDef); WicketUtils.addTooltip(this, tooltip).add(AttributeModifier.replace("border", "0")); }
public IconButtonPanel(final String id, final IconType type, final IModel<String> tooltip) { super(id); button = createButton("button"); add(button); init(type, null); if (tooltip != null) { WicketUtils.addTooltip(button, tooltip); } }
protected void addActionLink(final RepeatingView actionLinkRepeater, final AbstractLink link, final String labelText, final String tooltip) { final WebMarkupContainer actionLinkContainer = new WebMarkupContainer(actionLinkRepeater.newChildId()); actionLinkRepeater.add(actionLinkContainer); final Label label = new Label("label", labelText); if (tooltip != null) { WicketUtils.addTooltip(label, tooltip); } actionLinkContainer.add(link.add(label)); }