Class StatisticsNode
java.lang.Object
org.ametys.runtime.plugins.admin.statistics.StatisticsValue
org.ametys.runtime.plugins.admin.statistics.StatisticsNode
- All Implemented Interfaces:
Statistics
A node in the statistics tree
-
Constructor Summary
ConstructorDescriptionStatisticsNode
(String name, I18nizableText label, String icon, Object value, List<Statistics> children, boolean expanded) Create a node -
Method Summary
Modifier and TypeMethodDescriptionThe children of the nodeGet the json for the statistics exportGet the json for the client treeMethods inherited from class org.ametys.runtime.plugins.admin.statistics.StatisticsValue
getIcon, getLabel, getName, getValue
-
Constructor Details
-
StatisticsNode
public StatisticsNode(String name, I18nizableText label, String icon, Object value, List<Statistics> children, boolean expanded) Create a node- Parameters:
name
- The identifier of the nodelabel
- The labelicon
- The glyph iconvalue
- A jsonizable value. Can be null.children
- The childrenexpanded
- Is the tree expanded by default
-
-
Method Details
-
getChildren
The children of the node- Returns:
- the children
-
toJSONForExport
Description copied from interface:Statistics
Get the json for the statistics export- Specified by:
toJSONForExport
in interfaceStatistics
- Overrides:
toJSONForExport
in classStatisticsValue
- Returns:
- A non null json
-
toJSONTree
Description copied from interface:Statistics
Get the json for the client tree- Specified by:
toJSONTree
in interfaceStatistics
- Overrides:
toJSONTree
in classStatisticsValue
- Returns:
- A non null json for tree
-