You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Widget (PRIM_WDGT)

Widgets are user-defined JavaScript features typically implementing a 3rd party control e.g. Google Maps

Ancestors - Object (PRIM_OBJT)

Details

A Widget is used to create a wrapper around 3rd party controls and features. This is similar in concept to the definition of an ActiveX control.

Properties, events and methods can be added to the Widget to describe the functionality within the 3rd party script, allowing for the Widget to addressed in RDMLX as though it were a LANSA defined feature.

Each of the LANSA features will be asssociated with a JavaScript function that will implement the functionality as required.

To keep the association between the LANSA definition and underlying JavsScript simple, the names are required to match. Thus, a Method defined as AddMarker will have a corresponding function name of AddMarker and a property defined as MapType will have getMapType and setMapType routines.

Properties

Name

Description

ComponentClassName

ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT)

ComponentMembers

ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT)

ComponentPatternName

ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT)

ComponentTag

Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT)

ComponentType

ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT)

ComponentTypeName

ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT)

Name

Name identifies the component Inherited from Object (PRIM_OBJT)

Owner

Owner owns this component Inherited from Object (PRIM_OBJT)

Parent

The 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)

Events

Name

Description

CreateInstance

CreateInstance is signalled when an instance of a component is created Inherited from Object (PRIM_OBJT)

DestroyInstance

DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Object (PRIM_OBJT)

See also

All Component Classes
Technical Reference

  • No labels