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