org.sakaiproject.tool.assessment.ui.bean.delivery
Class ContentsDeliveryBean

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.bean.delivery.ContentsDeliveryBean
All Implemented Interfaces:
Serializable

public class ContentsDeliveryBean
extends Object
implements Serializable

Table of Contents and Contents Data

This is a 'dual purpose' bean. It can serve as a representation of the entire (table of) contents for an assessment, or the contents presented in a praticular page view.

See Also:
Serialized Form

Constructor Summary
ContentsDeliveryBean()
           
 
Method Summary
 float getCurrentScore()
          Current score for entire contents.
 boolean getIsNoParts()
           
 float getMaxScore()
          Maximum score for entire contents.
 ArrayList getPartsContents()
          List of parts (SectionContentsBean) for entire contents.
 String getPointsDisplayString()
          If we display the current score, return it, otherwise an empty string.
 boolean isShowStudentScore()
          Show the student score currently earned?
 void setCurrentScore(float currentScore)
          Current score for entire contents
 void setMaxScore(float maxScore)
          Maximum score for entire contents.
 void setPartsContents(ArrayList partsContents)
          Set parts (SectionContentsBean) for entire contents
 void setShowStudentScore(boolean showStudentScore)
          Set the student score currently earned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentsDeliveryBean

public ContentsDeliveryBean()
Method Detail

getCurrentScore

public float getCurrentScore()
Current score for entire contents.

Returns:
current score for entire contents

setCurrentScore

public void setCurrentScore(float currentScore)
Current score for entire contents

Parameters:
currentScore - current score for entire contents

getMaxScore

public float getMaxScore()
Maximum score for entire contents.

Returns:
maximum score for entire contents

setMaxScore

public void setMaxScore(float maxScore)
Maximum score for entire contents.

Parameters:
maxScore - maximum score for entire contents

getPartsContents

public ArrayList getPartsContents()
List of parts (SectionContentsBean) for entire contents.

Returns:
parts for entire contents

setPartsContents

public void setPartsContents(ArrayList partsContents)
Set parts (SectionContentsBean) for entire contents

Parameters:
partsContents - parts (SectionContentsBean) for entire contents

isShowStudentScore

public boolean isShowStudentScore()
Show the student score currently earned?

Returns:
the score

setShowStudentScore

public void setShowStudentScore(boolean showStudentScore)
Set the student score currently earned.

Parameters:
showStudentScore - true/false Show the student score currently earned?

getPointsDisplayString

public String getPointsDisplayString()
If we display the current score, return it, otherwise an empty string. Not currently used, provided if we need it later.

Returns:
either, a) the current score, otherwise, b) "" (empty string)

getIsNoParts

public boolean getIsNoParts()


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