git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@54934 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e5d148e7ba
commit
5124c67b82
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue