代写 GUI CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
1 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
2 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
3 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
4 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
5 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
6 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
7 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
8 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
9 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
10 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
11 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
12 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
13 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
14 of 17
4/13/2019, 7:29 PM
public class TourCoordinator extends Observable implements TravelManager {

CSC 216 SE Materials
https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
15 of 17
4/13/2019, 7:29 PM
setChanged(); // Marks the Observable as changed
notifyObservers(this); // Sends a message to any Observer classes that the object has changed.
public TravelGUI() {
// Observe the Trip Coordinator ((TourCoordinator) mgr).addObserver(this); } // More code follows
}
/**
* Updates the GUI in response to the TourCoordinator.
* @param o the TourCoordinator
* @param arg the GUI (this)
*/
@Override
public void update(Observable o, Object arg) {
if
} }
(o instanceof TourCoordinator) { itemSaveFile.setEnabled(true); itemNewFile.setEnabled(true); this.refreshAllClients(); this.refreshAllTrips(); refreshReservationsForSelectedClient(); refreshReservationsForSelectedTour();

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
16 of 17 4/13/2019, 7:29 PM

CSC 216 SE Materials https://pages.github.ncsu.edu/engr-csc216-staff/CSC216-SE-Materials/pr…
17 of 17 4/13/2019, 7:29 PM