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
ConstructorsConstructorDescriptionStatisticsNode(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:StatisticsGet the json for the statistics export- Specified by:
toJSONForExportin interfaceStatistics- Overrides:
toJSONForExportin classStatisticsValue- Returns:
- A non null json
-
toJSONTree
Description copied from interface:StatisticsGet the json for the client tree- Specified by:
toJSONTreein interfaceStatistics- Overrides:
toJSONTreein classStatisticsValue- Returns:
- A non null json for tree
-