Class StatisticsTopListBean
java.lang.Object
de.xima.fc.gui.bean.statistics.AStatisticsBean
de.xima.fc.gui.bean.statistics.StatisticsTopListBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class AStatisticsBean
localeBean, MIME_TYPE_EXCEL, MIME_TYPE_PDF, SUFFIX_EXCEL, SUFFIX_IMAGE, SUFFIX_PDF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCalculate the height of the chart.org.primefaces.model.StreamedContentExport the data as an Excel via p:fileDownload.intorg.primefaces.model.charts.bar.BarChartModelgetModel()getRange()voidReset the time range to null and update the model.voidsetAmount(int amount) voidsetAttribute(EProjectAttribute attribute) voidvoidUpdate the model of the chart.Methods inherited from class AStatisticsBean
insertImageFilename
-
Constructor Details
-
StatisticsTopListBean
public StatisticsTopListBean()
-
-
Method Details
-
getModel
public org.primefaces.model.charts.bar.BarChartModel getModel() -
getAttribute
-
setAttribute
-
getAttributes
-
setAmount
public void setAmount(int amount) -
getAmount
public int getAmount() -
getAmounts
-
setRange
-
getRange
-
calcChartHeight
public int calcChartHeight()Calculate the height of the chart. The height is determined by the size of the displayed dataset. The height is at least 100px and increases by 30px for each dataset entry.- Returns:
- height of the chart
-
updateModel
public void updateModel()Update the model of the chart. The necessary data is retrieved from the database and processed. The Y-Axis is labeled with the project names. The X-Axis is the amount of either calls, submits or errors. The color of the bars is determined by the selected attribute. This method should be called, when attribute/amount/range is changed. -
resetRange
public void resetRange()Reset the time range to null and update the model. -
exportExcel
public org.primefaces.model.StreamedContent exportExcel()Export the data as an Excel via p:fileDownload.- Returns:
- streamed content of the Excel file
-
getImageFilename
- Specified by:
getImageFilenamein classAStatisticsBean- Returns:
- The file name for the image file.
-
getChartWidgetVar
- Specified by:
getChartWidgetVarin classAStatisticsBean- Returns:
- The chart widget var.
-