/** * Sets current object of Student in this listblock line. After chaning the data you need to in * this listblock line you would probably want to refresh the UI using the refresh() method. * * @param pStudent The object to set. Attributes are copied. */ public void setStudent(Student pStudent) { if (pStudent == null && newStudent != null) { domainProxy.removeProxy(domainProxy.getProxy(newStudent, "Student")); newStudent = null; } else if (pStudent != null) { newStudent = pStudent; domainProxy.getNewProxy(newStudent, "Student"); } roleNameToObject.put("Student", newStudent); }