Skip to content

Commit

Permalink
Rename description variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gowthaman-01 committed Apr 3, 2024
1 parent 9f00615 commit 3704d2c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/main/java/seedu/address/ui/PersonCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
*/
public class PersonCard extends UiPart<Region> {
private static final String FXML = "PersonListCard.fxml";
private static final String PHONE_LABEL = "Phone: ";
private static final String ADDRESS_LABEL = "Address: ";
private static final String EMAIL_LABEL = "Email: ";
private static final String SUBJECT_LABEL = "Subject: ";
private static final String GRADE_LABEL = "Grade: ";
private static final String ATTENDANCE_LABEL = "Last class attendance: ";
private static final String PAYMENT_LABEL = "Current monthly fees status: ";
private static final String PHONE_DESCRIPTION = "Phone: ";
private static final String ADDRESS_DESCRIPTION = "Address: ";
private static final String EMAIL_DESCRIPTION = "Email: ";
private static final String SUBJECT_DESCRIPTION = "Subject: ";
private static final String GRADE_DESCRIPTION = "Grade: ";
private static final String ATTENDANCE_DESCRIPTION = "Last class attendance: ";
private static final String PAYMENT_DESCRIPTION = "Current monthly fees status: ";
private static final String CELL_SMALL_LABEL_CLASS = "cell_small_label";

/**
Expand Down Expand Up @@ -74,13 +74,13 @@ public PersonCard(Person person, int displayedIndex) {
person.getTags().stream()
.sorted(Comparator.comparing(tag -> tag.tagName))
.forEach(tag -> tags.getChildren().add(new Label(tag.tagName)));
setField(phone, PHONE_LABEL, person.getPhone().value);
setField(address, ADDRESS_LABEL, person.getAddress().value);
setField(email, EMAIL_LABEL, person.getEmail().value);
setField(attendance, ATTENDANCE_LABEL, person.getAttendance().value);
setField(payment, PAYMENT_LABEL, person.getPayment().value);
setField(subject, SUBJECT_LABEL, person.getSubject().value);
setField(grade, GRADE_LABEL, person.getGrade().value);
setField(phone, PHONE_DESCRIPTION, person.getPhone().value);
setField(address, ADDRESS_DESCRIPTION, person.getAddress().value);
setField(email, EMAIL_DESCRIPTION, person.getEmail().value);
setField(attendance, ATTENDANCE_DESCRIPTION, person.getAttendance().value);
setField(payment, PAYMENT_DESCRIPTION, person.getPayment().value);
setField(subject, SUBJECT_DESCRIPTION, person.getSubject().value);
setField(grade, GRADE_DESCRIPTION, person.getGrade().value);
person.getDateTimes().stream()
.sorted(Comparator.comparing(dateTime -> dateTime.value))
.forEach(dateTime -> {
Expand Down

0 comments on commit 3704d2c

Please sign in to comment.