Aplikasi POS Amigo, dibangun dengan JavaFX dengan Maven
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

101 wiersze
2.2 KiB

  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package id.amigogroup.posterminal.pencarian;
  7. import javafx.beans.property.SimpleObjectProperty;
  8. import javafx.beans.property.SimpleStringProperty;
  9. import javafx.scene.control.Button;
  10. /**
  11. *
  12. * @author ronal
  13. */
  14. public class TabelBarangCari {
  15. private final SimpleStringProperty kode;
  16. private final SimpleStringProperty nama;
  17. private final SimpleStringProperty ukur;
  18. private final SimpleStringProperty harga;
  19. private final SimpleObjectProperty<Button> btnTambah;
  20. public TabelBarangCari(String kode, String nama, String ukur,String harga,Button btnTambah) {
  21. this.kode = new SimpleStringProperty(kode);
  22. this.nama = new SimpleStringProperty(nama);
  23. this.ukur = new SimpleStringProperty(ukur);
  24. this.harga = new SimpleStringProperty(harga);
  25. this.btnTambah = new SimpleObjectProperty<>(btnTambah);
  26. }
  27. /**
  28. * @return the kode
  29. */
  30. public String getKode() {
  31. return kode.get();
  32. }
  33. /**
  34. * @param kode the kode to set
  35. */
  36. public void setKode(String kode) {
  37. this.kode.set(kode);
  38. }
  39. /**
  40. * @return the nama
  41. */
  42. public String getNama() {
  43. return nama.get();
  44. }
  45. /**
  46. * @param nama the nama to set
  47. */
  48. public void setNama(String nama) {
  49. this.nama.set(nama);
  50. }
  51. /**
  52. * @return the ukur
  53. */
  54. public String getUkur() {
  55. return ukur.get();
  56. }
  57. /**
  58. * @param ukur the ukur to set
  59. */
  60. public void setUkur(String ukur) {
  61. this.ukur.set(ukur);
  62. }
  63. /**
  64. * @return the nomor
  65. */
  66. public String getHarga() {
  67. return harga.get();
  68. }
  69. /**
  70. * @param harga the nomor to set
  71. */
  72. public void setHarga(String harga) {
  73. this.harga.set(harga);
  74. }
  75. /**
  76. * @return the btnTambah
  77. */
  78. public Button getBtnTambah() {
  79. return btnTambah.get();
  80. }
  81. /**
  82. * @param btnTambah the btnTambah to set
  83. */
  84. public void setBtnTambah(Button btnTambah) {
  85. this.btnTambah.set(btnTambah);
  86. }
  87. }