public class StudentGradesImpl extends Object implements StudentGrades, Comparable, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected DateFormat |
dateFormat |
protected Gradebook |
gradebook |
protected List |
grades |
protected Long |
id |
protected Timestamp |
lastChecked |
protected Integer |
lockId |
protected String |
username |
| Constructor and Description |
|---|
StudentGradesImpl() |
StudentGradesImpl(String username,
List grades) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object other) |
boolean |
equals(Object other) |
String |
formatGrades()
Formats the grades for display, independently of the JSF display.
|
String |
getCheckDateTime() |
Gradebook |
getGradebook() |
List |
getGrades() |
String |
getGradesRow() |
Long |
getId() |
Timestamp |
getLastChecked() |
Integer |
getLockId() |
boolean |
getReadAfterUpdate() |
String |
getUsername() |
int |
hashCode() |
void |
setGradebook(Gradebook gradebook) |
void |
setGrades(List grades) |
void |
setId(Long id) |
void |
setLastChecked(Timestamp lastChecked) |
void |
setLockId(Integer lockId) |
void |
setUsername(String username) |
protected Gradebook gradebook
protected String username
protected List grades
protected DateFormat dateFormat
protected Timestamp lastChecked
protected Long id
protected Integer lockId
public Integer getLockId()
public void setLockId(Integer lockId)
public Gradebook getGradebook()
getGradebook in interface StudentGradespublic void setGradebook(Gradebook gradebook)
setGradebook in interface StudentGradespublic String getUsername()
getUsername in interface StudentGradespublic void setUsername(String username)
setUsername in interface StudentGradespublic List getGrades()
getGrades in interface StudentGradespublic void setGrades(List grades)
setGrades in interface StudentGradespublic String getCheckDateTime()
getCheckDateTime in interface StudentGradespublic Timestamp getLastChecked()
getLastChecked in interface StudentGradespublic void setLastChecked(Timestamp lastChecked)
setLastChecked in interface StudentGradespublic Long getId()
getId in interface StudentGradespublic void setId(Long id)
setId in interface StudentGradespublic int compareTo(Object other)
compareTo in interface Comparablepublic boolean getReadAfterUpdate()
getReadAfterUpdate in interface StudentGradespublic String formatGrades()
Template exists for the parent gradebook, that template's
fillGrades method is used. Otherwise, the grades are formatted into a plain
old table.
This is a bad method for including display code within it; however, I do this for a simple reason: we're already including display code at this level via the template.
The prettier eventual solution will be to inject a default template via the controller, or possibly in the manager class (using a defaultTemplate property). This works for the quick and dirty now.
formatGrades in interface StudentGradespublic String getGradesRow()
getGradesRow in interface StudentGradesCopyright © 2004–2019 Sakai Project. All rights reserved.