Skip to content

4. Life cycle of a Breadcrumb

Gary Criblez edited this page Feb 13, 2020 · 1 revision

Phase 1: Initialization and configuration

The first step is to define the properties of the Breadcrumb that will be displayed. To do this, the component offers a "New AJUI_BreadCrumb" method generating a base object representing a default definition. Then the user is free to use the member functions attached to the object to customize its properties as he wishes and add the number of sections he wants.

Phase 2: Calculations and generation of the breadcrumb

The second phase that is the most significant for the component is the creation of the Breadcrumb based on its definition. During this phase, he will be in charge of retrieving the object's properties in order to perform a series of calculations and checks in order to generate/assign the various elements that will make up the Breadcrumb. It is also in this phase that exceptions related to the report and section type are processed. If a callback associated with an event (On Clicked, On Double clicked) is assigned to a section and the event is detected, then it will be executed at the end of the generation.

Phase 3: Show and hide

At the end of the generation, the image is associated with the image form object associated with it. Breadcrumb display management can be done using the "Show" and "Hide" member functions or using 4D methods to manage form objects.