RRRRHHHH_Code
Diff Revisions
0f75b2 ...
vs
7bf57b ...
for ruralHouses/src/gui/listOfBookingRequestsGUI.java
|
@@ -31,7 +31,7 @@ |
31 |
31 |
|
private static final long serialVersionUID = 1L; |
32 |
32 |
|
private JPanel contentPane; |
33 |
33 |
|
private JTable table; |
34 |
|
- |
private Owner own; |
|
34 |
+ |
private Offer off; |
35 |
35 |
|
private BookingManager bookM = new BookingManager(); |
36 |
36 |
|
private DefaultTableModel tableModel; |
37 |
37 |
|
private Vector<Booking> bookings = new Vector<Booking>(); |
|
@@ -39,9 +39,9 @@ |
39 |
39 |
|
/** |
40 |
40 |
|
* Create the frame. |
41 |
41 |
|
*/ |
42 |
|
- |
public listOfBookingRequestsGUI(Owner own) { |
|
42 |
+ |
public listOfBookingRequestsGUI(Offer of) { |
43 |
43 |
|
setTitle("Adding requests"); |
44 |
|
- |
this.own = own; |
|
44 |
+ |
this.off = of; |
45 |
45 |
|
try { |
46 |
46 |
|
|
47 |
47 |
|
init(); |
|
@@ -57,7 +57,7 @@ |
57 |
57 |
|
setContentPane(contentPane); |
58 |
58 |
|
contentPane.setLayout(null); |
59 |
59 |
|
|
60 |
|
- |
this.bookings= this.bookM.getAllBookings(own); |
|
60 |
+ |
this.bookings= this.off.getBookings(); |
61 |
61 |
|
JLabel lblNewLabel = new JLabel(); |
62 |
62 |
|
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 27)); |
63 |
63 |
|
lblNewLabel.setBounds(23, 41, 536, 33); |
|
@@ -117,7 +117,7 @@ |
117 |
117 |
|
row.add(book.getBookNumber()); |
118 |
118 |
|
row.add(book.isPaid()); |
119 |
119 |
|
row.add(book.getBookDate()); |
120 |
|
- |
row.add(book.getTelephone()); |
|
120 |
+ |
row.add(book.getClient()); |
121 |
121 |
|
row.add(book.getOffer()); |
122 |
122 |
|
tableModel.addRow(row); |
123 |
123 |
|
} |