Guest User

Untitled

a guest
Feb 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. var hbx1:HBox = new HBox();
  2.  
  3. var lb1:Label = new Label();
  4.  
  5. lb1.text = "De:";
  6.  
  7. hbx1.addElement(lb1);
  8. hbx1.addElement(filtroDataIniBusca);
  9. hbx1.percentWidth = 300;
  10. hbx1.setStyle("horizontalAlign","center");
  11.  
  12. var hbx2 : HBox = new HBox();
  13. var lb2 : Label = new Label();
  14. lb2.text = " a:";
  15. hbx2.addElement(lb2);
  16. hbx2.addElement(filtroDataFinBusca);
  17. hbx2.percentWidth = 100;
  18. hbx2.setStyle("horizontalAlign","center");
  19.  
  20. filtroDataFinBusca.width = filtroDataIniBusca.width = 150;
  21.  
  22. filtroDataIniBusca.setStyle("textAlign", "center");
  23. filtroDataFinBusca.setStyle("textAlign", "center");
  24.  
  25. filtroDataFinBusca.formatString = filtroDataIniBusca.formatString="DD/MM/YYYY";
  26. filtroDataFinBusca.dayNames = filtroDataIniBusca.dayNames = nomeDias;
  27. filtroDataFinBusca.monthNames = filtroDataIniBusca.monthNames = nomeMeses;
  28. filtroDataFinBusca.addEventListener("change", changeComboFinal);
  29. filtroDataIniBusca.addEventListener("change", changeComboComeco);
  30. filtroDataFinBusca.yearNavigationEnabled = true;
  31. filtroDataIniBusca.yearNavigationEnabled = true;
  32.  
  33.  
  34. var spc1:Spacer = new Spacer();
  35. spc1.height = 5;
  36.  
  37. var spc2:Spacer = new Spacer();
  38. spc2.height = 15;
  39.  
  40. var btn1:Button = new Button();
  41. btn1.label="Confirmar";
  42. btn1.width = 110;
  43. btn1.addEventListener(MouseEvent.CLICK, savePeriodo);
  44.  
  45. var btn2:Button = new Button();
  46. btn2.label="Cancelar";
  47. btn2.width = 110;
  48. btn2.addEventListener(MouseEvent.CLICK, closeTitleWindow);
  49.  
  50. var hbxBtn:HBox = new HBox();
  51. hbxBtn.addElement(btn1);
  52. hbxBtn.addElement(btn2);
  53. hbxBtn.percentWidth = 100;
  54. hbxBtn.setStyle("paddingTop","20");
  55. hbxBtn.setStyle("horizontalAlign","center");
  56.  
  57.  
  58. var vbxR : VBox = new VBox();
  59. vbxR.percentWidth = 100;
  60.  
  61.  
  62. var radioButtonEmissao: RadioButton = new RadioButton();
  63. radioButtonEmissao.label = "Emissao2";
  64. radioButtonEmissao.id = "rbEmissao";
  65. radioButtonEmissao.groupName = "tipoData";
  66. radioButtonEmissao.selected = true;
  67.  
  68. var radioButtonVencimento: RadioButton = new RadioButton();
  69. radioButtonVencimento.label = "Vencimento2";
  70. radioButtonVencimento.id = "rbVencimento";
  71. radioButtonVencimento.groupName = "tipoData";
  72.  
  73.  
  74. var radioButtonPagamento: RadioButton = new RadioButton();
  75. radioButtonPagamento.label = "Pagamento2";
  76. radioButtonPagamento.id = "rbPagamento";
  77. radioButtonPagamento.groupName = "tipoData";
  78.  
  79.  
  80. vbxR.addElement(radioButtonEmissao);
  81. vbxR.addElement(radioButtonVencimento);
  82. vbxR.addElement(radioButtonPagamento);
  83. vbxR.height = 80;
  84.  
  85. var vbxBody:VBox = new VBox();
  86. vbxBody.addElement(hbx1);
  87. vbxBody.addElement(hbx2);
  88. vbxBody.addElement(spc2);
  89. vbxBody.addElement(vbxR);
  90. // vbxBody.addElement(spc1);
  91. vbxBody.addElement(hbxBtn);
  92. vbxBody.percentWidth = 300;
  93. vbxBody.percentHeight = 900;
  94. vbxBody.height = 950;
  95. vbxBody.setStyle("horizontalAlign","center");
  96. vbxBody.setStyle("verticalAlign","center");
  97.  
  98. this.titleWindowSelectData.addElement(vbxBody);
Add Comment
Please, Sign In to add comment