-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create RestaurantSummary and display it in the GUI #103
Create RestaurantSummary and display it in the GUI #103
Conversation
…s as its placeholder disappearing and the wraptext of the Labels in RestaurantSummaryPanel don't work
…t package instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to write tests for the new classes implemented. Especially the Summary class.
@@ -107,6 +111,7 @@ public Restaurant(Restaurant restaurant, Category category) { | |||
this.categories = category; | |||
this.weblink = restaurant.weblink; | |||
this.openingHours = restaurant.openingHours; | |||
this.summary = new Summary(restaurant.getReviews()); | |||
} | |||
|
|||
public Name getName() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using getters, would be better to create a method. For example, it is possible to pass the UI components into a method to set the name values and summary data.
.append(" visits"); | ||
return builder.toString(); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Work! Since it is a new class, perhaps you can write a summary class test to ensure it is working perfectly!
Closes #90