/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { if (!isEnabled()) { return Messages.get().container(Messages.GUI_ORGUNITUSERS_LIST_DISABLED_DELETE_HELP_0); } return super.getHelpText(); }
/** * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { if (!isEnabled()) { return Messages.get().container(Messages.GUI_ORGUNIT_ADMIN_TOOL_DISABLED_EDIT_HELP_0); } return super.getHelpText(); }
/** * @see org.opencms.workplace.list.I_CmsListDirectAction#helpTextHtml() */ public String helpTextHtml() { StringBuffer html = new StringBuffer(512); String ht = getHelpText().key(getWp().getLocale()); String helptext = new MessageFormat(ht, getWp().getLocale()).format(new Object[] {""}); if ((getColumnForTexts() == null) || helptext.equals(new MessageFormat(ht, getWp().getLocale()).format(new Object[] {getItem().get( getColumnForTexts())}))) { html.append(A_CmsHtmlIconButton.defaultHelpHtml(getId(), helptext)); } return html.toString(); }
/** * @see org.opencms.workplace.list.I_CmsListDirectAction#helpTextHtml() */ public String helpTextHtml() { StringBuffer html = new StringBuffer(512); String ht = getHelpText().key(getWp().getLocale()); String helptext = new MessageFormat(ht, getWp().getLocale()).format(new Object[] {""}); if ((getColumnForTexts() == null) || helptext.equals( new MessageFormat(ht, getWp().getLocale()).format(new Object[] {getItem().get(getColumnForTexts())}))) { html.append(A_CmsHtmlIconButton.defaultHelpHtml(getId(), helptext)); } return html.toString(); }
/** * Help method to resolve the help text to use.<p> * * @param locale the used locale * * @return the help text */ protected String resolveHelpText(Locale locale) { String helpText = getHelpText().key(locale); if ((getColumnForTexts() != null) && (getItem().get(getColumnForTexts()) != null)) { helpText = new MessageFormat(helpText, locale).format(new Object[] {getItem().get(getColumnForTexts())}); } return helpText; }
/** * Help method to resolve the help text to use.<p> * * @param locale the used locale * * @return the help text */ protected String resolveHelpText(Locale locale) { String helpText = getHelpText().key(locale); if ((getColumnForTexts() != null) && (getItem().get(getColumnForTexts()) != null)) { helpText = new MessageFormat(helpText, locale).format(new Object[] {getItem().get(getColumnForTexts())}); } return helpText; }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { CmsMessageContainer helptext = super.getHelpText(); if (helptext == null) { if (isEnabled()) { helptext = Messages.get().container(Messages.GUI_EDITRESOURCE_ACTION_HELP_0); } else { helptext = Messages.get().container(Messages.GUI_EDITRESOURCE_DISABLED_ACTION_HELP_0); } } return helptext; }
/** * @see org.opencms.workplace.tools.I_CmsHtmlIconButton#getHelpText() */ @Override public CmsMessageContainer getHelpText() { CmsMessageContainer helptext = super.getHelpText(); if (helptext == null) { if (isEnabled()) { helptext = Messages.get().container(Messages.GUI_EDITRESOURCE_ACTION_HELP_0); } else { helptext = Messages.get().container(Messages.GUI_EDITRESOURCE_DISABLED_ACTION_HELP_0); } } return helptext; }