Package ecar.portal.bean

Examples of ecar.portal.bean.InformacaoBean


      secaoBean.setId(ID_SECAO_SUPER_DESTAQUE);
      secaoBean.setTitulo(seg.getTituloSgti());
     
      ArrayList list = new ArrayList();
     
      InformacaoBean info = new InformacaoBean();
      info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
      info.setDescricao(seg.getLinhaApoioSgti());
      info.setImagem(new ecar.dao.ConfiguracaoDao(null).getConfiguracao().getRaizUpload() + seg.getImagemCapaSgti());
      info.setLink(seg.getSegmentoItemLeiauteSgtil().getLinkSgtil());
      info.setLinkMais("ctrl_artigos.jsp");
      info.setTitulo(seg.getLegendaImagCapaSgti());
      info.setCodSgti(seg.getCodSgti());
      info.setFonte(seg.getSegmentoItemFonteSgtif().getDescricaoSgtif());
     
      list.add(info);
     
      secaoBean.setInformacaoBean(list);
View Full Code Here


    ArrayList aList = new ArrayList();
   
    while(it.hasNext()) {
      SegmentoItemSgti seg = (SegmentoItemSgti)it.next();
           
      InformacaoBean info = new InformacaoBean();
      info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
     
      String linha = seg.getLinhaApoioSgti();
     
      if (linha.length() >= 50){
        for (int i = 50; i > 0; i--) {
          if (linha.charAt(i)==' ') {
            linha = Util.substring(linha, 0, i)+"...";
            break;
          }
        }       
      }           
      info.setDescricao(linha);     
      info.setTitulo(seg.getTituloSgti());
      info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
      info.setCodSgti(seg.getCodSgti());
      info.setLink(seg.getSegmentoItemLeiauteSgtil().getLinkSgtil());
     
      aList.add(info);     
    }
    secaoBean.setInformacaoBean(aList);
View Full Code Here

    secaoBean.setId(ID_SECAO_AGENDA);
   
    while(it.hasNext()) {
      AgendaOcorrenciaAgeo agendaOc = (AgendaOcorrenciaAgeo)it.next();
           
      InformacaoBean info = new InformacaoBean();
           
      String sHora = String.valueOf(agendaOc.getHoraEventoAgeo());
      if (sHora.length()==1) sHora = "0"+sHora;
     
      String sMin = String.valueOf(agendaOc.getMinutoEventoAgeo());
      if (sMin.length()==1) sMin = "0"+sMin;
     
      info.setDataHora(Data.parseDate(agendaOc.getDataEventoAgeo())+" - "+sHora+":"+sMin);
      info.setTitulo(agendaOc.getAgendaAge().getEventoAge());
      info.setCodSgti(agendaOc.getCodAgeo());
      info.setLink("ctrl_agenda.jsp")//TODO: link?     
     
      aList.add(info);     
    }   
    secaoBean.setInformacaoBean(aList);
    this.portalBean.adicionarElementoNoSecaoBean(secaoBean);
View Full Code Here

      ArrayList aList = new ArrayList();
     
      while(it.hasNext()) {
        SegmentoItemSgti seg = (SegmentoItemSgti)it.next();
             
        InformacaoBean info = new InformacaoBean();
        info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
        info.setDescricao(seg.getSegmentoItemFonteSgtif().getDescricaoSgtif());
        info.setTitulo(seg.getTituloSgti());
        SegmentoItemLeiauteSgtil leiaute = seg.getSegmentoItemLeiauteSgtil();
        info.setLink(leiaute!=null?leiaute.getLinkSgtil():"ctrl_taxacao.jsp"); //TODO: retirar ctrl_taxacao.jsp
        info.setCodSgti(seg.getCodSgti());
       
        aList.add(info);     
      }     
      secaoBean.setInformacaoBean(aList);
View Full Code Here

    if ((list != null)&&(list.size()>0)){     
      Iterator it = list.iterator();     
      while(it.hasNext()) {
        DestaqueSubAreaDtqsa destDtqsa = (DestaqueSubAreaDtqsa)it.next();
       
        InformacaoBean info = new InformacaoBean();
        info.setDataHora(Data.parseDate(destDtqsa.getDestaqueAreaDtqa().getDataInclusaoDtqa()));
        info.setDescricao(destDtqsa.getDestaqueAreaDtqa().getDescricaoDtqa());
        info.setTitulo(destDtqsa.getDestaqueAreaDtqa().getIdentificacaoDtqa());
       
        aList.add(info);
      }     
    }
    secaoBean.setInformacaoBean(aList);
View Full Code Here

TOP

Related Classes of ecar.portal.bean.InformacaoBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.