/** * Handler for the STATUS event. The second level of the event name identifies the pane where * the status information (the event data) is to be displayed. For example, the event * STATUS.TIMING would display the status information in the pane whose associated label has an * id of "TIMING", creating one dynamically if necessary. If there is no second level event * name, the default pane is used. */ @Override public void eventCallback(String eventName, Object eventData) { String pane = StrUtil.piece(eventName, ".", 2); Label lbl = getLabel(pane.isEmpty() ? "default" : pane); lbl.setValue(eventData.toString()); lbl.setTooltiptext(eventData.toString()); }
/** * Add a row containing the specified header (left column) and value (right column). If * log.isDebugEnabled() is false then don't add row for empty or null values * * @param header Text for header column * @param value Text for value column */ protected void addRow(String header, String value) { if ((value == null || value.length() == 0) && !debug) { return; } Label lbl = new Label(); lbl.setValue(value); lbl.setTooltiptext(value); addRow(header, lbl); }