WebDrillDown Studio
Class hierarchy for the android.widget package:
  Reset
Jagged Hierarchies:
WebDrillDown supports the ability to navigate jagged hierarchies where the depth of each tree path can be different.

The popup items for a symmetric, non-jagged hierarchy can be described as follows:

{ Items: ["ItemA", "ItemB", "ItemC"], Next: "(select child)" }

This creates a popup menu with three items. When any of these items are selected, a new popup menu is made available for selecting children items.

This occurs because of the inclusion of the optional "Next" property. If this property was not present, all these items would be terminal nodes.

The popup items for a jagged hierarchy can be described as follows:

{ Items: ["ItemA", { Item: "ItemB", Next: "(select child)" }, "ItemC"] }

This also creates a popup menu with three items. However, they are different because only the middle item can have children items!

This occurs because the string array element is replaced with a new object that contains the required properties. The "Item" property specifies the name of the item, and the "Next" property indicates that it has children. The first and last items are terminal nodes.

If children options exist for a popup item, a custom arrow image is displayed to the user to indicate these sub-options are available. These images are aligned to the right-side of the popup menu by settings the following property:

WebDrillDown.Popup.ChildrenImageAlignment = ChildrenImageAlignment.Right;

In this sample the WebDrillDown is allowing you to browse the class hierarchy for the android.widget package. Like most class hierarchies, this is a jagged hierarchy.

Clicking the "Submit" button will display the full path for your selection below:
Click the "Reset" link to clear your selection.
Control being used:
View the code:
The code is available in the samples directory under:
/BasicFeatures
    /JaggedHierarchies