From c5b2e653b916ec1cbca7bd438ae8955ec2f0a265 Mon Sep 17 00:00:00 2001 From: hieplq Date: Fri, 23 May 2014 09:08:21 +0700 Subject: [PATCH] IDEMPIERE-1957:add ability to make tooltip for any control not only gridField --- .../WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java | 2 ++ .../src/org/adempiere/webui/panel/HelpController.java | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java index 287360407d..42fd01348f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/IDesktop.java @@ -206,6 +206,8 @@ public interface IDesktop extends UIPart { public void updateHelpTooltip(GridField gridField); + public void updateHelpTooltip(String hdr, String desc, String help, String otherContent); + public void updateHelpQuickInfo(GridTab gridTab); public boolean isPendingWindow(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java index 61ef38eac4..1f0f4f1e7c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/HelpController.java @@ -183,11 +183,13 @@ public class HelpController sb.append("\n\n
\n"); if (hdr == null || hdr.trim().length() == 0){ - if (otherContent != null){ + if (otherContent == null){ + otherContent = Msg.getMsg(Env.getCtx(), "PlaceCursorIntoField"); + } + sb.append("("); sb.append (otherContent); sb.append (")"); - } }else{ sb.append(""); sb.append(hdr);