本文整理匯總了Java中org.zkoss.zul.Treecell類的典型用法代碼示例。如果您正苦於以下問題:Java Treecell類的具體用法?Java Treecell怎麽用?Java Treecell使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Treecell類屬於org.zkoss.zul包,在下文中一共展示了Treecell類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: render
import org.zkoss.zul.Treecell; //導入依賴的package包/類
/**
* Renderiza nodo.
*/
public void render(final Treeitem item, final Object data, final int index) {
final Object pt = ((TreeNode) data).getData();
UnidadAdministrativa ua = (UnidadAdministrativa) pt;
item.setValue(data);
final Treerow tr = new Treerow();
tr.setParent(item);
item.appendChild(tr);
item.setOpen(ua.getCodigoPadre() == null);
tr.appendChild(new Treecell(ua.getDescripcion()));
}
示例2: render
import org.zkoss.zul.Treecell; //導入依賴的package包/類
public void render(final Treeitem item, final Object data, final int index) {
final Object pt = ((TreeNode) data).getData();
item.setValue(data);
final Treerow tr = new Treerow();
tr.setParent(item);
item.appendChild(tr);
item.setOpen(true);
NodoArbolVersionTramite nodo = (NodoArbolVersionTramite) pt;
switch (nodo.getTipo()) {
case PROPIEDADES_VERSION:
tr.appendChild(new Treecell(Labels.getLabel("tree.propiedades")));
break;
case CONTROL_ACCESO:
tr.appendChild(new Treecell(Labels.getLabel("tree.controlAcceso")));
break;
case MENSAJES_VALIDACION:
tr.appendChild(new Treecell(Labels.getLabel("tree.mensajes")));
break;
case LISTA_PASOS:
tr.appendChild(new Treecell(Labels.getLabel("tree.pasos")));
break;
case DEBE_SABER:
tr.appendChild(new Treecell(Labels.getLabel("tree.pasoDebeSaber")));
break;
case RELLENAR:
tr.appendChild(new Treecell(Labels.getLabel("tree.pasoRellenar")));
break;
case FORMULARIO:
tr.appendChild(new Treecell(getDescripcionDocumento(nodo.getIdentificador())));
break;
case ANEXAR:
tr.appendChild(new Treecell(Labels.getLabel("tree.pasoAnexar")));
break;
case ANEXO:
tr.appendChild(new Treecell(getDescripcionDocumento(nodo.getIdentificador())));
break;
case PAGAR:
tr.appendChild(new Treecell(Labels.getLabel("tree.pasoPagar")));
break;
case PAGO:
tr.appendChild(new Treecell(getDescripcionDocumento(nodo.getIdentificador())));
break;
case REGISTRAR:
tr.appendChild(new Treecell(Labels.getLabel("tree.pasoRegistrar")));
break;
}
}
示例3: renderValue
import org.zkoss.zul.Treecell; //導入依賴的package包/類
private void renderValue(Treerow treerow, String value) {
Treecell treecell = new Treecell(value);
treecell.setSpan(2);
treecell.setParent(treerow);
}