Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that all these methods are stubbed out to do nothing by the plug-in, therefore only required functionality need be implemented. (All the functions must be present for the module to compile).

Mandatory
  • onInit(context:IWidgetContext) - This function is called when your widget has completed loading into the Infinit.e Framework.  The current data context object is passed to the widget which you will want to store locally.  This IWidgetContext object contains methods to access the current result sets from the query, filter, and other associated information.  This method has been stubbed out if you are using the Infinit.e Eclipse Plugin and no further action needs taken.

...

  • "onSaveWidgetOptions" is called periodically by the framework (so shouldn't block)
  • "onLoadWidgetOptions" is called after the widget's intialization is complete.
  • As can be seen by the code fragments above, the "Object" passed to from the callbacks represents a JSON object.

Adding a query term to the builder

This is a somewhat more advanced use of the IWidgetContext API, and requires some familiarity with the JSON query API.

...