[contrib] svn commit: r67717 - in gradebook2/branches/GRBK-483: . api/src/java/org/sakaiproject/gradebook/gwt/sakai client client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/a11y client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/event client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/model client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/view/panel server/src/java/org/sakaiproject/gradebook/gwt/sakai server/src/java/org/sakaiproject/gradebook/gwt/sakai/calculations server/src/java/org/sakaiproject/gradebook/gwt/sakai/rest/resource server/src/java/org/sakaiproject/gradebook/gwt/server shared/src/java/org/sakaiproject/gradebook/gwt/client

dxp at umich.edu dxp at umich.edu
Wed May 19 07:53:39 PDT 2010


Details: http://source.sakaiproject.org/viewsvn?root=contrib&view=rev&rev=67717

Author: dxp at umich.edu
Date: 2010-05-19 10:53:39 -0400 (Wed, 19 May 2010)
New Revision: 67717

Added:
   gradebook2/branches/GRBK-483/client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/a11y/AriaToggleButton.java
Modified:
   gradebook2/branches/GRBK-483/.project
   gradebook2/branches/GRBK-483/api/src/java/org/sakaiproject/gradebook/gwt/sakai/GradeCalculations.java
   gradebook2/branches/GRBK-483/api/src/java/org/sakaiproject/gradebook/gwt/sakai/Gradebook2ComponentService.java
   gradebook2/branches/GRBK-483/client/.classpath
   gradebook2/branches/GRBK-483/client/.project
   gradebook2/branches/GRBK-483/client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/event/GradebookEvent.java
   gradebook2/branches/GRBK-483/client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/event/GradebookEvents.java
   gradebook2/branches/GRBK-483/client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/model/GradeRecordModel.java
   gradebook2/branches/GRBK-483/client/src/java/org/sakaiproject/gradebook/gwt/client/gxt/view/panel/MultiGradeContentPanel.java
   gradebook2/branches/GRBK-483/pom.xml
   gradebook2/branches/GRBK-483/server/src/java/org/sakaiproject/gradebook/gwt/sakai/Gradebook2ComponentServiceImpl.java
   gradebook2/branches/GRBK-483/server/src/java/org/sakaiproject/gradebook/gwt/sakai/GradebookFinalGradeSubmissionController.java
   gradebook2/branches/GRBK-483/server/src/java/org/sakaiproject/gradebook/gwt/sakai/calculations/GradeCalculationsOOImpl.java
   gradebook2/branches/GRBK-483/server/src/java/org/sakaiproject/gradebook/gwt/sakai/rest/resource/Roster.java
   gradebook2/branches/GRBK-483/server/src/java/org/sakaiproject/gradebook/gwt/server/ImportExportUtility.java
   gradebook2/branches/GRBK-483/shared/src/java/org/sakaiproject/gradebook/gwt/client/I18nConstants.java
   gradebook2/branches/GRBK-483/shared/src/java/org/sakaiproject/gradebook/gwt/client/I18nConstants.properties
Log:
GRBK-483

1. add New class toggle button, working the client site
2. add a QueryParam for this toggle, e.g. showWeighted, and pass this down to the service.getRoster() call
3. (modify getRoster() with the boolean from above, pass to buildStudentRow(), buildLearnerGradeRecord(), appendItemData() and modify appendItemData() to check this value and if it's true replace the values in the cellMap.put(id, value); lines with the appropriately modified versions of AssignmentGradeRecord.getEarnedWeightedPercentage() -- that is, for points, multiple that value by the max points as a BigDecimal, for percentages, simply display it with the appropriate scale (2 decimal places).)
4. worling on (modify the populateGradeRecordUnits() method by adding a new override method to the anonymous inner class GradeRecordCalculationUnit, method calculatePercentageScore(), which calls the super method, then populates AssignmentGradeRecord.setEarnedWeightedPercentage() with the "percentageScore" following the model of setDropped())
 




More information about the source mailing list