/** * Create a new status pane and associated label. * * @param pane Name of pane (becomes the id of the label). * @return The newly created label. */ private Label createLabel(String pane) { boolean first = root.getFirstChild() == null; if (!first) { root.appendChild(new Splitter()); } Cell cell = new Cell(); if (first) { cell.setHflex("1"); } else { cell.setAlign("center"); } cell.setVflex("1"); cell.setSclass("cwf-header-cell"); root.appendChild(cell); Label lbl = new Label(); lbl.setId(pane); cell.appendChild(lbl); return lbl; } }