Advanced Wiki Search

IWidget Editor

A new editor has been added to the App Builder to provide for the visual creation and definition of iWidget events.
The primary building blocks used for describing IWidget events are:

  • Event Descriptions
    An Event Description identifies the event payload. The same Event Description can be used by multiple Events defined for the IWidget.
    An Event Description is identified with a Unique Id.
  • Events
    An Event describes an operation (Send/Receive) performed by the iWidget using a particular Event Description.
    An Event is identified by a Unique ID and specifies one or both of the Send or Receive Operations agains a specific Event Description.

Lotus Mashup Maker allows the wiring of any 2 widgets that declare the same or compatible Event Descriptions (payloads)
where one Widget is defined as a Sender and the other a Receiver of that payload.


The following steps demonstrate the various functions of the IWidget Editor:

Setup

  • Create a New Application and Open that Application
  • In the File Editor, click on New File and select iwidget in app/iwidgets
  • In the IWidget Create Dialog. provide a Descriptive Name different than the Widget Name to see how these 2 names are used.
    (mywidget is used as the widget name in this example)
    The Widget Name is used to uniquely identify the iWidget on the File System.
    The Descriptive Name will be recognized an d identified by Lotus MashupMaker as the widget "Title".
  • In the File Editor, click on the iWidget XML File (e.g. mywidget.xml)
    If asked whether you wish to add the zero.iwidget, answer Yes
  • Click on the Design tab at the bottom of the editor pane

Your screen should look something like this:

  • IWidget Editor:
    iwidget_editor.jpg

Working with Event Descriptions

  • NOTE: One or More Event Descriptions must Exist before Events can be created.
  • Click on the Event Descriptions Tab
  • Click on the Add icon
  • Supply the values shown here and click Save:
    new_event_description.jpg
  • Click again on the Add icon to create a second definition
  • Supply the values shown here and click Save:
    new_event_description_2.jpg

At this point, you should have 2 event descriptions and your screen should look something like this:

  • Event Descriptions:
    event_descriptions_2.jpg

Working with Events

  • Click on the Events Tab
  • Click on the Add icon
  • Supply the values shown here and click Save:
    Note: You will be selecting zipcode from the drop down and creating a reference to that Event Description
    new_event.jpg

You should now have 1 event defined and your screen should look something like this:

  • Events:
    events.jpg

Return to Event Descriptions

  • Click on the Event Descriptions Tab
  • Event Descriptions:
    event_descriptions_2.jpg

  • NOTE:
    The zipcode Event Description is now showing that it is linked to an event.
    Event Descriptions that are linked to Events cannot be deleted until the event that is linking to it is deleted.
    Removing the link in the ReceiveZipCode will drop the reference to the zipcode Event Description and
    it will once again be delete-able.

  • Click on the Properties icon for the Descrption with ID: zipcode
    Note that ReceiveZipCode is now showing as an Event Reference
event_description_properties_2.jpg


The Editor Source View

If you click on the Source Tab, you should be able to see the and tags that have been added

<iw:event id="ReceiveZipCode" eventDescName="zipcode" onEvent="onReceiveZipCode" handled="true" />
<iw:eventDescription id="areacode" payloadType="json" description="Area%20Code" lang="en" />
<iw:eventDescription id="zipcode" payloadType="text" description="Zip%20Code" lang="en" />

Changes made directly to the XML source code should be reflected in the editor when you click the Design tab.

  Attachment Action Size Date Who Comment
jpg event_descriptions_2.jpg props, move 19.3 K 09 Apr 2009 - 15:49 tjwolf Event Descriptions
jpg event_properties.jpg props, move 21.9 K 09 Apr 2009 - 15:49 tjwolf Event Properties
jpg events.jpg props, move 19.0 K 09 Apr 2009 - 15:49 tjwolf Events
jpg iwidget_editor.jpg props, move 41.4 K 09 Apr 2009 - 17:01 tjwolf IWidget Editor
jpg new_event.jpg props, move 21.5 K 09 Apr 2009 - 15:50 tjwolf Add New Event
jpg new_event_description.jpg props, move 20.4 K 09 Apr 2009 - 15:55 tjwolf Add New Event Description
jpg new_event_description_2.jpg props, move 20.3 K 09 Apr 2009 - 17:19 tjwolf New Event Description
r3 - 18 May 2009 - 17:08:57 - raboyles
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site