@Named @ViewScoped public class AgesBean extends Object implements Serializable
Constructor and Description |
---|
AgesBean() |
Modifier and Type | Method and Description |
---|---|
ChartModel |
getAgeModel()
Returns a chart model containing age data.
|
ChartModel |
getMeanMedianAgeAtBirthModel()
Returns a chart model containing ages at birth data.
|
ChartModel |
getMeanMedianAgeAtDeathModel()
Returns a chart model containing ages at death data.
|
List<Map.Entry<String,Integer>> |
getStatsMapList()
Returns a list of statistic labels to the statistic value.
|
public List<Map.Entry<String,Integer>> getStatsMapList()
These values are first put into a LinkedHashMap
then converted into a List
of Map.Entry
.
This is to allow use in PrimeFaces' datatable JSF element.
public ChartModel getMeanMedianAgeAtBirthModel()
AgesDataBean.meanMeadianAgesPerBirthYear()
public ChartModel getMeanMedianAgeAtDeathModel()
AgesDataBean.meanMeadianAgesPerDeathYear()
public ChartModel getAgeModel()
AgesDataBean.ages()
Copyright © 2015 Joseph Hendrix