Guest User

Untitled

a guest
Feb 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. private static final long serialVersionUID = 1L;
  2.  
  3. @ManagedProperty("#{listPlanilhaDao}")
  4. private ListPlanilhasDao listPlanilhaDao;
  5.  
  6. private List<UploadFiles> lista;
  7.  
  8. @PostConstruct
  9. public void init() {
  10.  
  11. try {
  12. lista = listPlanilhaDao.getListPlanilha();
  13. } catch (Exception e) {
  14. e.printStackTrace();
  15. System.out.println("ERROR: " + e);
  16. }
  17. }
  18.  
  19. public ListPlanilhasDao getListPlanilhaDao() {
  20. return listPlanilhaDao;
  21. }
  22.  
  23. public void setListPlanilhaDao(ListPlanilhasDao listPlanilhaDao) {
  24. this.listPlanilhaDao = listPlanilhaDao;
  25. }
  26.  
  27. public List<UploadFiles> getLista() {
  28.  
  29. return lista;
  30. }
  31.  
  32. public void setLista(List<UploadFiles> lista) {
  33. this.lista = lista;
  34. }
  35.  
  36. public void preProcessPDF(Object document) {
  37.  
  38. Document pdf = (Document) document;
  39. pdf.setPageSize(PageSize.A4.rotate());
  40.  
  41. pdf.open();
  42. }
  43.  
  44. public static long getSerialversionuid() {
  45. return serialVersionUID;
  46. }
Add Comment
Please, Sign In to add comment