本文整理了Java中org.projectforge.web.wicket.WicketUtils.addTooltip()
方法的一些代码示例,展示了WicketUtils.addTooltip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WicketUtils.addTooltip()
方法的具体详情如下:
包路径:org.projectforge.web.wicket.WicketUtils
类名称:WicketUtils
方法名:addTooltip
[英]Adds a SimpleAttributeModifier("title", ...) to the given component.
[中]添加SimpleAttributeModifier(“标题”,…)到给定的组件。
代码示例来源:origin: micromata/projectforge
/**
* @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;
}
代码示例来源:origin: micromata/projectforge
/**
* Sets tool-tip for the label.
* @param tooltip
* @return this for chaining.
*/
public HeadingPanel setTooltip(final String tooltip)
{
WicketUtils.addTooltip(label, tooltip);
return this;
}
}
代码示例来源:origin: micromata/projectforge
/**
* 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);
}
代码示例来源:origin: micromata/projectforge
/**
* 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);
}
代码示例来源:origin: micromata/projectforge
/**
* @param content
* @return this for chaining.
*/
public DropFileContainer setTooltip(final String content)
{
WicketUtils.addTooltip(main, content);
return this;
}
代码示例来源:origin: micromata/projectforge
public SingleButtonPanel setTooltip(final String tooltip)
{
if (tooltip != null) {
WicketUtils.addTooltip(button, tooltip);
}
return this;
}
代码示例来源:origin: micromata/projectforge
/**
* @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;
}
代码示例来源:origin: micromata/projectforge
/**
* 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;
}
代码示例来源:origin: micromata/projectforge
/**
* 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;
}
代码示例来源:origin: micromata/projectforge
/**
* Sets tool-tip for the label.
* @param tooltip
* @return this for chaining.
*/
public ButtonPanel setTooltip(final String tooltip)
{
WicketUtils.addTooltip(label, tooltip);
return this;
}
}
代码示例来源:origin: micromata/projectforge
/**
* 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;
}
}
代码示例来源:origin: micromata/projectforge
/**
* 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;
}
代码示例来源:origin: micromata/projectforge
public ContextMenuEntry addTooltip(final Model<String> model)
{
WicketUtils.addTooltip(link, model);
return this;
}
代码示例来源:origin: micromata/projectforge
/**
* 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;
}
代码示例来源:origin: micromata/projectforge
/**
* 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;
}
代码示例来源:origin: micromata/projectforge
private void init(final String id, final AbstractLink link, final String tooltip)
{
add(link);
if (tooltip != null) {
WicketUtils.addTooltip(link, tooltip);
}
}
代码示例来源:origin: micromata/projectforge
/**
* 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"));
}
代码示例来源:origin: micromata/projectforge
public TooltipImage(final String id, final ImageDef imageDef, final String tooltip)
{
super(id, imageDef);
WicketUtils.addTooltip(this, tooltip).add(AttributeModifier.replace("border", "0"));
}
代码示例来源:origin: micromata/projectforge
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);
}
}
代码示例来源:origin: micromata/projectforge
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));
}
内容来源于网络,如有侵权,请联系作者删除!