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
ConstructorDescriptionStatisticsValue
(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:Statistics
The node identifier- Specified by:
getName
in interfaceStatistics
- Returns:
- an identifier
-
getLabel
Description copied from interface:Statistics
The node label- Specified by:
getLabel
in interfaceStatistics
- Returns:
- label
-
getIcon
Description copied from interface:Statistics
The icon- Specified by:
getIcon
in interfaceStatistics
- Returns:
- The glyph icon
-
getValue
The wrapped value- Returns:
- the nullable and jsonizable value
-
toJSONForExport
Description copied from interface:Statistics
Get the json for the statistics export- Specified by:
toJSONForExport
in interfaceStatistics
- Returns:
- A non null json
-
toJSONTree
Description copied from interface:Statistics
Get the json for the client tree- Specified by:
toJSONTree
in interfaceStatistics
- Returns:
- A non null json for tree
-