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.int
Returns 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.int
getTotal()
Returns the total number of examinations or check rides in this entry's period.int
getUsers()
Returns the total number of distinct users in this time period.void
setPassed
(int cnt) Updates the number of passed examinations or check rides.void
setSubLabel
(String label) Updates the entry sub-label.void
setTotal
(int cnt) Updates the total number of examinations or check rides.void
setUsers
(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:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-