public class HierarchyInspector extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static int | countMaxDepth(Widget widget)Counts the maximum depth of the child hierarchy of a widget. | 
| static int | countNumberOfContainers(Widget widget)Counts the number of containers in the child hierarchy of a widget. | 
| static int | countNumberOfWidgets(Widget widget)Counts the number of widgets in the child hierarchy of a widget. | 
public static int countMaxDepth(Widget widget)
The method is recursive: if the given widget is a container, it browses its children.
widget - the root widget.public static int countNumberOfContainers(Widget widget)
The method is recursive: if the given widget is a container, it browses its children.
widget - the root widget.public static int countNumberOfWidgets(Widget widget)
The method is recursive: if the given widget is a container, it browses its children.
widget - the root widget.