org.sakaiproject.tool.assessment.ui.listener.evaluation
Class HistogramListener

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.listener.evaluation.HistogramListener
All Implemented Interfaces:
EventListener, javax.faces.event.ActionListener, javax.faces.event.FacesListener, javax.faces.event.ValueChangeListener

public class HistogramListener
extends Object
implements javax.faces.event.ActionListener, javax.faces.event.ValueChangeListener

This handles the selection of the Histogram Aggregate Statistics.

Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009 The Sakai Foundation Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.osedu.org/licenses/ECL-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Version:
$Id: HistogramListener.java 95934 2011-07-29 22:13:46Z ktsao@stanford.edu $

Constructor Summary
HistogramListener()
           
 
Method Summary
 List getDetailedStatisticsSpreadsheetData(String publishedId)
          added by gopalrc - Dec 2007 Standard process action method.
 boolean histogramScores(HistogramScoresBean histogramScores, TotalScoresBean totalScores)
          modified by gopalrc Nov 2007 Calculate the detailed statistics This will populate the HistogramScoresBean with the data associated with the particular versioned assessment based on the publishedId.
 void processAction(javax.faces.event.ActionEvent ae)
          Standard process action method.
 void processAllSubmissionsChange(javax.faces.event.ValueChangeEvent event)
           
 void processValueChange(javax.faces.event.ValueChangeEvent event)
          Process a value change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramListener

public HistogramListener()
Method Detail

processAction

public void processAction(javax.faces.event.ActionEvent ae)
                   throws javax.faces.event.AbortProcessingException
Standard process action method.

Specified by:
processAction in interface javax.faces.event.ActionListener
Parameters:
ae - ActionEvent
Throws:
javax.faces.event.AbortProcessingException

processValueChange

public void processValueChange(javax.faces.event.ValueChangeEvent event)
Process a value change.

Specified by:
processValueChange in interface javax.faces.event.ValueChangeListener

processAllSubmissionsChange

public void processAllSubmissionsChange(javax.faces.event.ValueChangeEvent event)

histogramScores

public boolean histogramScores(HistogramScoresBean histogramScores,
                               TotalScoresBean totalScores)
modified by gopalrc Nov 2007 Calculate the detailed statistics This will populate the HistogramScoresBean with the data associated with the particular versioned assessment based on the publishedId. Some of this code will change when we move this to Hibernate persistence.

Parameters:
publishedId - String
histogramScores - TotalScoresBean
Returns:
boolean true if successful

getDetailedStatisticsSpreadsheetData

public List getDetailedStatisticsSpreadsheetData(String publishedId)
                                          throws javax.faces.event.AbortProcessingException
added by gopalrc - Dec 2007 Standard process action method.

Parameters:
ae - ActionEvent
Throws:
javax.faces.event.AbortProcessingException


Copyright © 2005-2012 Sakai Project. All Rights Reserved.