Class ExamStatsEntry

java.lang.Object
org.deltava.beans.testing.ExamStatsEntry
All Implemented Interfaces:
ViewEntry

public class ExamStatsEntry extends Object implements ViewEntry
A bean to store Examination and Check Ride statistics.
Since:
3.0
Version:
3.0
Author:
Luke
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes the bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    Returns the total number of examinations or check rides in this entry's period.
    int
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExamStatsEntry

      public ExamStatsEntry(String label)
      Initializes the bean.
      Parameters:
      label - the entry label
      Throws:
      NullPointerException - if label is null
  • Method Details

    • getLabel

      public String getLabel()
      Returns the entry label.
      Returns:
      the label
    • getSubLabel

      public String getSubLabel()
      Returns the entry sub-label.
      Returns:
      the sub-label
    • 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

      public void setSubLabel(String label)
      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

      public String getRowClassName()
      Description copied from interface: ViewEntry
      Returns the CSS class for this object if rendered in a view table.
      Specified by:
      getRowClassName in interface ViewEntry
      Returns:
      the CSS class name, or NULL if none