Example usage for org.apache.wicket Component getString

List of usage examples for org.apache.wicket Component getString

Introduction

In this page you can find the example usage for org.apache.wicket Component getString.

Prototype

public final String getString(final String key) 

Source Link

Usage

From source file:org.projectforge.web.wicket.WicketUtils.java

License:Open Source License

/**
 * Uses "jiraSupportTooltipImage" as component id.
 * @param parent only needed for localization
 * @param id/*from w w  w  .java 2 s  .c  o m*/
 * @return IconPanel which is invisible if JIRA isn't configured.
 */
public static IconPanel getJIRASupportTooltipIcon(final Component parent, final String id) {
    final IconPanel icon = new IconPanel(id, IconType.JIRA_SUPPORT,
            Model.of(parent.getString("tooltip.jiraSupport.field.title")),
            Model.of(parent.getString("tooltip.jiraSupport.field.content")));
    if (isJIRAConfigured() == false) {
        icon.setVisible(false);
    }
    return icon;
}

From source file:org.projectforge.web.wicket.WicketUtils.java

License:Open Source License

/**
 * You need to use {@link AjaxEditableLabel#getLabel()}.
 * @param label//from  w w  w.  j a v  a 2s.c o  m
 * @return
 */
public static Component addEditableLabelDefaultTooltip(final Component label) {
    return addTooltip(label, label.getString("form.ajaxEditableLabel.tooltip"));
}