public Boolean getValue(Component cmp) { return ((Label) cmp).isMultiline(); } });
/** Sets whether to preserve the new line and the white spaces at the * beginning of each line. */ public void setMultiline(boolean multiline) { if ((_auxinf != null && _auxinf.multiline) != multiline) { initAuxInfo().multiline = multiline; smartUpdate("multiline", isMultiline()); } }
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws IOException { super.renderProperties(renderer); int v = getMaxlength(); if (v > 0) renderer.render("maxlength", v); render(renderer, "multiline", isMultiline()); render(renderer, "pre", isPre()); final String val = getValue(); //allow deriving to override getValue() render(renderer, "value", val); org.zkoss.zul.impl.Utils.renderCrawlableText(val); }