IDEMPIERE-1957:add ability to make tooltip for any control not only gridField
This commit is contained in:
parent
78738e318e
commit
c5b2e653b9
|
@ -206,6 +206,8 @@ public interface IDesktop extends UIPart {
|
||||||
|
|
||||||
public void updateHelpTooltip(GridField gridField);
|
public void updateHelpTooltip(GridField gridField);
|
||||||
|
|
||||||
|
public void updateHelpTooltip(String hdr, String desc, String help, String otherContent);
|
||||||
|
|
||||||
public void updateHelpQuickInfo(GridTab gridTab);
|
public void updateHelpQuickInfo(GridTab gridTab);
|
||||||
|
|
||||||
public boolean isPendingWindow();
|
public boolean isPendingWindow();
|
||||||
|
|
|
@ -183,11 +183,13 @@ public class HelpController
|
||||||
sb.append("<html>\n<body>\n<div class=\"help-content\">\n");
|
sb.append("<html>\n<body>\n<div class=\"help-content\">\n");
|
||||||
|
|
||||||
if (hdr == null || hdr.trim().length() == 0){
|
if (hdr == null || hdr.trim().length() == 0){
|
||||||
if (otherContent != null){
|
if (otherContent == null){
|
||||||
|
otherContent = Msg.getMsg(Env.getCtx(), "PlaceCursorIntoField");
|
||||||
|
}
|
||||||
|
|
||||||
sb.append("<i>(");
|
sb.append("<i>(");
|
||||||
sb.append (otherContent);
|
sb.append (otherContent);
|
||||||
sb.append (")</i>");
|
sb.append (")</i>");
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
sb.append("<b>");
|
sb.append("<b>");
|
||||||
sb.append(hdr);
|
sb.append(hdr);
|
||||||
|
|
Loading…
Reference in New Issue