IDEMPIERE-4007 Allow to use set Tool Tip text in the right Help panel from code. i.e in Forms

This commit is contained in:
Diego Ruiz 2019-07-18 21:00:36 +02:00
parent 65673117c1
commit e32d1f4312
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ public class HelpController
*/
public void renderToolTip(String hdr, String desc, String help, String otherContent)
{
if (Util.isEmpty(hdr) && Util.isEmpty(otherContent))
pnlToolTip.setVisible(false);
else if (!pnlToolTip.isVisible())
pnlToolTip.setVisible(true);
StringBuilder sb = new StringBuilder();
sb.append("<html>\n<body>\n<div class=\"help-content\">\n");