frederico 2016-04-14 19:12:26 +00:00
parent e5d148e7ba
commit 5124c67b82
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import com.rjconsultores.ventaboletos.entidad.Categoria;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
/**
*
* @author Administrador
*/
public class RenderCategoriaTipoPassagem implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
Categoria categoria = (Categoria) o;
Listcell lc = new Listcell();
lc = new Listcell(categoria.getCategoriaId().toString());
lc.setParent(lstm);
lc = new Listcell(categoria.getDesccategoria());
lc.setParent(lstm);
lc = new Listcell(categoria.getGrupoCategoria() == null ? "" : categoria.getGrupoCategoria().getDescGrupo());
lc.setParent(lstm);
lstm.setAttribute("data", categoria);
}
}