IDEMPIERE-4075 Html tags and CSS in Status Line

This commit is contained in:
Hans Auler GmbH 2019-12-11 16:28:35 +01:00 committed by Carlos Ruiz
parent 3a6b25ddec
commit 304014ab72
1 changed files with 14 additions and 6 deletions

View File

@ -25,6 +25,7 @@ import org.adempiere.webui.component.Tabpanel;
import org.adempiere.webui.component.Window; import org.adempiere.webui.component.Window;
import org.adempiere.webui.util.ZKUpdateUtil; import org.adempiere.webui.util.ZKUpdateUtil;
import org.compiere.process.ProcessInfoLog; import org.compiere.process.ProcessInfoLog;
import org.zkoss.zul.Html;
import org.zkoss.zhtml.Text; import org.zkoss.zhtml.Text;
import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Execution; import org.zkoss.zk.ui.Execution;
@ -54,7 +55,9 @@ public class StatusBar extends Panel implements EventListener<Event>
*/ */
private static final long serialVersionUID = 1519490416637936553L; private static final long serialVersionUID = 1519490416637936553L;
private Label infoLine; private Panel infoPanel;
private Html infoLine;
private Div west; private Div west;
@ -84,7 +87,9 @@ public class StatusBar extends Panel implements EventListener<Event>
private void init() private void init()
{ {
infoLine = new Label(); infoPanel = new Panel();
infoLine = new Html();
infoPanel.appendChild(infoLine);
east = new Div(); east = new Div();
east.setSclass("adwindow-status-docinfo"); east.setSclass("adwindow-status-docinfo");
@ -107,9 +112,12 @@ public class StatusBar extends Panel implements EventListener<Event>
*/ */
public void setInfo (String text) public void setInfo (String text)
{ {
infoLine.setValue(text != null ? text : ""); StringBuilder inflcnt = new StringBuilder();
infoLine.setTooltiptext(text); inflcnt.append("<html>\n<body>\n<div class=\"help-content\">\n");
infoLine.setStyle("font-weight: bold;"); inflcnt.append(text != null ? text : "");
inflcnt.append("</div>\n</body>\n</html>");
infoLine.setContent(inflcnt.toString());
} // setInfo } // setInfo
/** /**