View Javadoc

1   package org.kuali.student.enrollment.class2.appointment.form;
2   
3   import org.kuali.rice.krad.web.form.UifFormBase;
4   import org.kuali.student.r2.core.acal.dto.KeyDateInfo;
5   import org.kuali.student.r2.core.acal.dto.TermInfo;
6   import org.kuali.student.enrollment.class2.appointment.dto.AppointmentWindowWrapper;
7   
8   import java.util.ArrayList;
9   import java.util.List;
10  
11  public class RegistrationWindowsManagementForm extends UifFormBase {
12      private TermInfo termInfo;
13      private String termType;
14      private String termYear;
15      //period drop-down field in Appointment Windows page
16      private String periodId;
17      private String periodName;
18      private String periodInfoDetails;
19      private List<KeyDateInfo> periodMilestones;
20      private List<AppointmentWindowWrapper> appointmentWindows;
21  
22      private AppointmentWindowWrapper selectedAppointmentWindow;
23  
24      //    private List<String> appointmentWindowIdsToDelete;
25      boolean showAddWindows;
26  
27  //    private Map<String, List<AppointmentWindowInfo>> periodAndWindowsMap;
28  
29      public RegistrationWindowsManagementForm() {
30          super();
31          termInfo = new TermInfo();
32  //        periodInfoDetails = new String();
33          periodMilestones = new ArrayList<KeyDateInfo>();
34          appointmentWindows = new ArrayList<AppointmentWindowWrapper>();
35  //        appointmentWindowIdsToDelete = new ArrayList<String>();
36          showAddWindows = false;
37      }
38  
39      public TermInfo getTermInfo() {
40          return termInfo;
41      }
42  
43      public void setTermInfo(TermInfo termInfo) {
44          this.termInfo = termInfo;
45      }
46  
47      public String getTermType() {
48          return termType;
49      }
50  
51      public void setTermType(String termType) {
52          this.termType = termType;
53      }
54  
55      public String getTermYear() {
56          return termYear;
57      }
58  
59      public void setTermYear(String termYear) {
60          this.termYear = termYear;
61      }
62  
63      public String getPeriodId() {
64          return periodId;
65      }
66  
67      public void setPeriodId(String periodId) {
68          this.periodId = periodId;
69      }
70  
71      public String getPeriodName() {
72          return periodName;
73      }
74  
75      public void setPeriodName(String periodName) {
76          this.periodName = periodName;
77      }
78  
79      public String getPeriodInfoDetails() {
80          return periodInfoDetails;
81      }
82  
83      public void setPeriodInfoDetails(String periodInfoDetails) {
84          this.periodInfoDetails = periodInfoDetails;
85      }
86  
87      public List<KeyDateInfo> getPeriodMilestones() {
88          return periodMilestones;
89      }
90  
91      public void setPeriodMilestones(List<KeyDateInfo> periodMilestones) {
92          this.periodMilestones = periodMilestones;
93      }
94  
95      public List<AppointmentWindowWrapper> getAppointmentWindows() {
96          return appointmentWindows;
97      }
98  
99      public void setAppointmentWindows(List<AppointmentWindowWrapper> appointmentWindows) {
100         this.appointmentWindows = appointmentWindows;
101     }
102 
103 //    public List<String> getAppointmentWindowIdsToDelete() {
104 //        return appointmentWindowIdsToDelete;
105 //    }
106 //
107 //    public void setAppointmentWindowIdsToDelete(List<String> appointmentWindowIdsToDelete) {
108 //        this.appointmentWindowIdsToDelete = appointmentWindowIdsToDelete;
109 //    }
110 
111     public boolean isShowAddWindows() {
112         return showAddWindows;
113     }
114 
115     public void setShowAddWindows(boolean showAddWindows) {
116         this.showAddWindows = showAddWindows;
117     }
118 
119     public AppointmentWindowWrapper getSelectedAppointmentWindow() {
120         AppointmentWindowWrapper window = selectedAppointmentWindow;
121         selectedAppointmentWindow = null;
122         return window;
123     }
124 
125     public void setSelectedAppointmentWindow(AppointmentWindowWrapper appointmentWindow) {
126         selectedAppointmentWindow = appointmentWindow;
127     }
128 
129     public void removeSelectedAppointmentWindow(AppointmentWindowWrapper window) {
130         appointmentWindows.remove(window);
131     }
132 }