19 package org.turro.menu;
21 import org.turro.zkoss.layout.VSeparator;
22 import org.zkoss.zk.ui.HtmlBasedComponent;
23 import org.zkoss.zul.Cell;
24 import org.zkoss.zul.Hbox;
25 import org.zkoss.zul.Label;
33 private Cell message, user, company, status;
41 lmsg.setValue(message);
44 public void setUser(HtmlBasedComponent comp) {
45 user.getChildren().clear();
47 comp.setStyle(getStyle() +
";white-space:nowrap;");
48 user.appendChild(comp);
53 company.getChildren().clear();
55 comp.setStyle(getStyle() +
";white-space:nowrap;");
56 company.appendChild(comp);
61 status.getChildren().clear();
63 comp.setStyle(getStyle() +
";white-space:nowrap;");
64 status.appendChild(comp);
68 private void initiate() {
69 setSclass(
"mainStatusbar");
70 setSclass(
"z-valign-middle");
74 message.setHflex(
"1");
78 message.appendChild(lmsg);
84 company.setHflex(
"min");
88 status.setHflex(
"min");