Class ExamStatsEntry
java.lang.Object
org.deltava.beans.testing.ExamStatsEntry
- All Implemented Interfaces:
ViewEntry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Returns the entry label.intReturns the number of passed examinations or check rides in this entry's period.Returns the CSS class for this object if rendered in a view table.Returns the entry sub-label.intgetTotal()Returns the total number of examinations or check rides in this entry's period.intgetUsers()Returns the total number of distinct users in this time period.voidsetPassed(int cnt) Updates the number of passed examinations or check rides.voidsetSubLabel(String label) Updates the entry sub-label.voidsetTotal(int cnt) Updates the total number of examinations or check rides.voidsetUsers(int cnt) Updates the total number of users in this time period.
-
Constructor Details
-
ExamStatsEntry
Initializes the bean.- Parameters:
label- the entry label- Throws:
NullPointerException- if label is null
-
-
Method Details
-
getLabel
-
getSubLabel
-
getTotal
public int getTotal()Returns the total number of examinations or check rides in this entry's period.- Returns:
- the total number of examinations or check rides
- See Also:
-
getPassed
public int getPassed()Returns the number of passed examinations or check rides in this entry's period.- Returns:
- the number of passed examinations or check rides
- See Also:
-
getUsers
public int getUsers()Returns the total number of distinct users in this time period.- Returns:
- the number of users
- See Also:
-
setSubLabel
Updates the entry sub-label.- Parameters:
label- the sub-label
-
setTotal
public void setTotal(int cnt) Updates the total number of examinations or check rides.- Parameters:
cnt- the total- See Also:
-
setPassed
public void setPassed(int cnt) Updates the number of passed examinations or check rides.- Parameters:
cnt- the number of passed examinations- See Also:
-
setUsers
public void setUsers(int cnt) Updates the total number of users in this time period.- Parameters:
cnt- the number of users- See Also:
-
getRowClassName
Description copied from interface:ViewEntryReturns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name, or NULL if none
-