PRIM_WEB.Router (PRIM_WEB.Router)

A simple component class that acts as the root of a tree of routes. It is associated with a PRIM_MD.ViewContainer instance to activate routing on that view container.

Ancestors - PRIM_WEB.Routable (PRIM_WEB.Routable) Object (PRIM_OBJT)

Details

The Router class acts as the root of a tree of routes.
 
It is associated with a PRIM_MD.ViewContainer instance to activate the routing on a view container.
 
It inherits from PRIM_WEB.Routable so that it can be the parent of PRIM_WEB.Route instances.

Properties

NameDescription
ComponentClassNameComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)
ComponentMembersComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)
ComponentPatternNameComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)
ComponentTagGeneric space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)
ComponentTypeComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)
ComponentTypeNameComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)
NameName identifies the component Inherited from Object (PRIM_OBJT)
OwnerOwner owns this component Inherited from Object (PRIM_OBJT)
ParentThe component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT)
RelatedReferenceReference to an object instance to be stored for this item that provides a convenient, generic storage point that joins the Routable instance to a data object. This data object is then available to support specific processing of a routable object, like the storage of additional user interface components and data for authorization checks. Inherited from PRIM_WEB.Routable (PRIM_WEB.Routable)
RouterA read-only property that traverses up the parent chain to find the first parent that is a PRIM_WEB.Router or *NULL if not found Inherited from PRIM_WEB.Routable (PRIM_WEB.Routable)

Events

NameDescription
CreateInstanceCreateInstance is signalled when an instance of a component is created Inherited from PRIM_WEB.Routable (PRIM_WEB.Routable)
DestroyInstanceDestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from PRIM_WEB.Routable (PRIM_WEB.Routable)
MatchThis event is signalled when the active path has been matched
Path, Route, Allow, Redirect

Methods

NameDescription
CreateRouteMethod to support creation of a route when building a dynamic router Inherited from PRIM_WEB.Routable (PRIM_WEB.Routable)
Result, Path, View, Parent
ProvideRouterA router implements the PRIM_WEB.IRouterProvider interface, returning itself when a router is requested
Result

See also

All Component Classes

Technical Reference