fr.paris.lutece.plugins.quiz.business
Class QuestionGroup

java.lang.Object
  extended by fr.paris.lutece.plugins.quiz.business.QuestionGroup

public class QuestionGroup
extends Object

This is the business class for the object QuestionGroup


Constructor Summary
QuestionGroup()
           
 
Method Summary
 boolean getDisplayScore()
          Check if the score of the quiz should be displayed in this group.
 String getHtmlContent()
          Get the HTMl content of this group, or null if this group is not a free HTML group
 int getIdGroup()
          Returns the IdGroup
 int getIdImage()
          Get the id of the image
 int getIdQuiz()
          Returns the identifier of this Quiz.
 boolean getIsFreeHtml()
          Check if this group is a group with free HTML
 String getLabelGroup()
          Returns the LabelGroup
 int getPositionGroup()
          Returns the identifier of this Quiz.
 String getSubject()
          Returns the Subject
 void setDisplayScore(boolean bDisplayResult)
          Indicates that this group must display the score of the quiz or not
 void setHtmlContent(String strHtmlContent)
          Set the HTMl content of this group, or null if this group is not a free HTML group
 void setIdGroup(int nIdGroup)
          Sets the IdGroup
 void setIdImage(int nIdImage)
          Set the id of the image
 void setIdQuiz(int nIdQuiz)
          Sets the identifier of the quiz to the specified integer.
 void setIsFreeHtml(boolean bIsFreeHtml)
          Set this group free HTML group or a question group
 void setLabelGroup(String strLabelGroup)
          Sets the LabelGroup
 void setPositionGroup(int nPositionGroup)
          Sets the identifier of the quiz to the specified integer.
 void setSubject(String strSubject)
          Sets the Subject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionGroup

public QuestionGroup()
Method Detail

getIdGroup

public int getIdGroup()
Returns the IdGroup

Returns:
The IdGroup

setIdGroup

public void setIdGroup(int nIdGroup)
Sets the IdGroup

Parameters:
nIdGroup - The IdGroup

getLabelGroup

public String getLabelGroup()
Returns the LabelGroup

Returns:
The LabelGroup

setLabelGroup

public void setLabelGroup(String strLabelGroup)
Sets the LabelGroup

Parameters:
strLabelGroup - The LabelGroup

getSubject

public String getSubject()
Returns the Subject

Returns:
The Subject

setSubject

public void setSubject(String strSubject)
Sets the Subject

Parameters:
strSubject - The Subject

getIdQuiz

public int getIdQuiz()
Returns the identifier of this Quiz.

Returns:
_nIdQuiz The Quiz identifier

setIdQuiz

public void setIdQuiz(int nIdQuiz)
Sets the identifier of the quiz to the specified integer.

Parameters:
nIdQuiz - The quiz identifier

getPositionGroup

public int getPositionGroup()
Returns the identifier of this Quiz.

Returns:
_nIdQuiz The Quiz identifier

setPositionGroup

public void setPositionGroup(int nPositionGroup)
Sets the identifier of the quiz to the specified integer.

Parameters:
nPositionGroup - The group position

getIsFreeHtml

public boolean getIsFreeHtml()
Check if this group is a group with free HTML

Returns:
True if this group is a group with free HTML, false if it has questions

setIsFreeHtml

public void setIsFreeHtml(boolean bIsFreeHtml)
Set this group free HTML group or a question group

Parameters:
bIsFreeHtml - True if this group is a group with free HTML, false if it has questions

getHtmlContent

public String getHtmlContent()
Get the HTMl content of this group, or null if this group is not a free HTML group

Returns:
the HTMl content of this group, or null if this group is not a free HTML group

setHtmlContent

public void setHtmlContent(String strHtmlContent)
Set the HTMl content of this group, or null if this group is not a free HTML group

Parameters:
strHtmlContent - the HTMl content of this group, or null if this group is not a free HTML group

getIdImage

public int getIdImage()
Get the id of the image

Returns:
the id of the image

setIdImage

public void setIdImage(int nIdImage)
Set the id of the image

Parameters:
nIdImage - the id of the image

getDisplayScore

public boolean getDisplayScore()
Check if the score of the quiz should be displayed in this group. Only free HTML group can display scores

Returns:
True if the group should display the score of the quiz, false otherwise.

setDisplayScore

public void setDisplayScore(boolean bDisplayResult)
Indicates that this group must display the score of the quiz or not

Parameters:
bDisplayResult - True if the group must display the score of the quiz, false otherwise


Copyright © 2014 Mairie de Paris. All Rights Reserved.