Class StatisticsValue
java.lang.Object
org.ametys.runtime.plugins.admin.statistics.StatisticsValue
- All Implemented Interfaces:
Statistics
- Direct Known Subclasses:
StatisticsNode
A terminal node in statistics
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticsValue(String name, I18nizableText label, String icon, Object value) Create a value -
Method Summary
-
Constructor Details
-
StatisticsValue
Create a value- Parameters:
name- The identifier of the nodelabel- The labelicon- The glyph iconvalue- A jsonizable value. Can be null.
-
-
Method Details
-
getName
Description copied from interface:StatisticsThe node identifier- Specified by:
getNamein interfaceStatistics- Returns:
- an identifier
-
getLabel
Description copied from interface:StatisticsThe node label- Specified by:
getLabelin interfaceStatistics- Returns:
- label
-
getIcon
Description copied from interface:StatisticsThe icon- Specified by:
getIconin interfaceStatistics- Returns:
- The glyph icon
-
getValue
The wrapped value- Returns:
- the nullable and jsonizable value
-
toJSONForExport
Description copied from interface:StatisticsGet the json for the statistics export- Specified by:
toJSONForExportin interfaceStatistics- Returns:
- A non null json
-
toJSONTree
Description copied from interface:StatisticsGet the json for the client tree- Specified by:
toJSONTreein interfaceStatistics- Returns:
- A non null json for tree
-