1 package org.kuali.student.enrollment.class1.timeslot.dto;
2
3 import org.kuali.student.r2.core.scheduling.dto.TimeSlotInfo;
4
5 import java.io.Serializable;
6
7
8
9
10 public class TimeSlotWrapper implements Serializable {
11 private TimeSlotInfo timeSlotInfo;
12
13 private boolean isChecked;
14
15 private String typeName;
16 private String typeKey;
17
18 private String startTimeDisplay = "";
19 private String endTimeDisplay = "";
20 private String daysDisplayName = "";
21
22
23 private boolean enableDeleteButton = true;
24
25 public TimeSlotWrapper() {
26 timeSlotInfo = new TimeSlotInfo();
27 }
28
29 public TimeSlotInfo getTimeSlotInfo() {
30 return timeSlotInfo;
31 }
32
33 public boolean getIsChecked() {
34 return isChecked;
35 }
36
37 public void setIsChecked(boolean checked) {
38 this.isChecked = checked;
39 }
40
41 public void setTimeSlotInfo(TimeSlotInfo timeSlotInfo) {
42 this.timeSlotInfo = timeSlotInfo;
43 }
44
45 public String getDaysPattern() {
46 return timeSlotInfo.getWeekdays().toString();
47 }
48
49 public String getStartTime() {
50 return timeSlotInfo.getStartTime().toString();
51 }
52
53 public String getEndTime() {
54 return timeSlotInfo.getEndTime().toString();
55 }
56
57 public String getStartTimeDisplay() {
58 return startTimeDisplay;
59 }
60
61 public void setStartTimeDisplay(String startTimeDisplay) {
62 this.startTimeDisplay = startTimeDisplay;
63 }
64
65 public String getEndTimeDisplay() {
66 return endTimeDisplay;
67 }
68
69 public void setEndTimeDisplay(String endTimeDisplay) {
70 this.endTimeDisplay = endTimeDisplay;
71 }
72
73 public String getDaysDisplayName() {
74 return daysDisplayName;
75 }
76
77 public void setDaysDisplayName(String daysDisplayName) {
78 this.daysDisplayName = daysDisplayName;
79 }
80
81 public String getTypeName() {
82 return typeName;
83 }
84
85 public void setTypeName(String typeName) {
86 this.typeName = typeName;
87 }
88
89 public String getTypeKey() {
90 return typeKey;
91 }
92
93 public void setTypeKey(String typeKey) {
94 this.typeKey = typeKey;
95 }
96
97 public boolean isEnableDeleteButton() {
98 return enableDeleteButton;
99 }
100
101 public void setEnableDeleteButton(boolean enableDeleteButton) {
102 this.enableDeleteButton = enableDeleteButton;
103 }
104 }