org.sakaiproject.tool.gradebook.jsf
Class AssignmentPointsConverter

java.lang.Object
  extended byjavax.faces.convert.NumberConverter
      extended byorg.sakaiproject.tool.gradebook.jsf.PointsConverter
          extended byorg.sakaiproject.tool.gradebook.jsf.AssignmentPointsConverter
All Implemented Interfaces:
Converter, StateHolder

public class AssignmentPointsConverter
extends PointsConverter

This formatting-only converver consolidates the rather complex formatting logic for assignment and assignment grade points. If the points are null, they should be displayed in a special way. If the points belong to an assignment which doesn't count toward the final grade, they should be displayed in a special way with a tooltip "title" attribute.


Field Summary
 
Fields inherited from class javax.faces.convert.NumberConverter
CONVERTER_ID, JAVA_VERSION_14
 
Constructor Summary
AssignmentPointsConverter()
           
 
Method Summary
 String getAsString(FacesContext context, UIComponent component, Object value)
           
 
Methods inherited from class javax.faces.convert.NumberConverter
getAsObject, getCurrencyCode, getCurrencySymbol, getDecimalFormatSymbols, getLocale, getMaxFractionDigits, getMaxIntegerDigits, getMinFractionDigits, getMinIntegerDigits, getPattern, getType, isGroupingUsed, isIntegerOnly, isTransient, restoreState, saveState, setCurrencyCode, setCurrencySymbol, setGroupingUsed, setIntegerOnly, setLocale, setMaxFractionDigits, setMaxIntegerDigits, setMinFractionDigits, setMinIntegerDigits, setPattern, setTransient, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignmentPointsConverter

public AssignmentPointsConverter()
Method Detail

getAsString

public String getAsString(FacesContext context,
                          UIComponent component,
                          Object value)
Specified by:
getAsString in interface Converter
Overrides:
getAsString in class PointsConverter