IDEMPIERE-1957:add ability to make tooltip for any control not only gridField

This commit is contained in:
hieplq 2014-05-23 09:08:21 +07:00
parent 78738e318e
commit c5b2e653b9
2 changed files with 6 additions and 2 deletions

View File

@ -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();

View File

@ -183,11 +183,13 @@ public class HelpController
sb.append("<html>\n<body>\n<div class=\"help-content\">\n");
if (hdr == null || hdr.trim().length() == 0){
if (otherContent != null){
if (otherContent == null){
otherContent = Msg.getMsg(Env.getCtx(), "PlaceCursorIntoField");
}
sb.append("<i>(");
sb.append (otherContent);
sb.append (")</i>");
}
}else{
sb.append("<b>");
sb.append(hdr);