Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Mashup Center wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Mashup Center 3.0.0.1 Documentation Custom Search Scope...
Search
Community Articles > IBM Mashup Center > Widget Help > Understanding how system widgets interact through events
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

IBM contributorAnna G O'Neal
Contribution Summary:
  • Articles authored: 175
  • Articles edited: 274
  • Comments Posted: 34

Recent articles by this author

Maintaining page IDs when importing spaces

After exporting a space to one server and then importing that space to another server, you might notice that the original IDs for that space and all its pages and widgets change. In cases where you do not want the IDs to change, you can run a stableid import command to import the space ZIP file ...

Adding a custom widget to the mashup builder

You can add a custom widget to the mashup build directly from the Add to Mashup Builder window in the catalog. Do the following steps: 1. Open the catalog.xml file for the widget in edit mode, and add the line in italic font: definition ...

IBM Mashup Center Trial Edition, Version 3.0.0.1

This is an evaluation version of IBM Mashup Center, version 3.0.0.1. The product media contains all the functionality of a fully licensed version of IBM Mashup Center, except for the following limitations: This software is valid for 60 days from installation. This software is only available for ...

Date formats do not match browser settings for language

When browser settings for language are set to engb, certain widgets that display start and end dates of events might incorrectly display the dates in American English format ((MMDDYYYY)) instead of United Kingdom English format (DDMMYYYY). For example, when you view a series of events in the ...

Connecting to the Mashup Center WebDAV when working with themes and skins

This topic provides information on WebDAV, including how to connect to the file store to work with Page Builder 2 static resources.

Community articleUnderstanding how system widgets interact through events

Added by Anna G O'Neal | Edited by IBM contributor Anna G O'Neal on February 15, 2010 | Version 10
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: events, widgets, system widgets, developing
ShowTable of Contents
HideTable of Contents
  • 1 Navigation widget
  • 2 Space selector widget
  • 3 Page action menu widget
  • 4 Page title widget
  • 5 Palette widget
  • 6 Page icons widget
  • 7 Layout widget
  • 8 Hidden widgets corral widget
  • 9 Mode selector widget
  • 10 Dialog displayer widget
  • 11 Wiring interface widget
  • 12 Autowiring manager widget
  • 13 Page source widget
  • 14 Edit page widget
  • 15 Sharing pages and spaces widget
  • 16 Publish widget
  • 17 Move page widget
  • 18 View more pages widget
  • 19 Change page owner widget
  • 20 Embed page widget
  • 21 Rename widget
  • 22 Import widget
  • 23 Embed widget
  • 24 Create page widget
  • 25 Create space widget
  • 26 Edit space widget
  • 27 Copy space widget
  • 28 Change space owner widget
  • 29 Space manager widget
  • 30 Create page widget
  • 31 Create widget builder widget
This article describes how Mashup Center system widgets communicate through public events.

The mashup builder itself is an example of a mashup application. The user interface is coded with a set of system widgets that communicate with each other through wires that allow the sending and receiving of events. These system widgets are wired together to create the environment you use when you create your own mashup.

As a developer, you can use the following list of system widgets and their events as a reference when creating your own system widgets. As you develop widgets, you can refer back to this reference content to understand how to work with the events that are defined in each system widget.

Note: Because all Mashup Center widgets adhere to the iWidget Specification Version 2, widgets and events are often referred to as iWidgets and iEvents.

Navigation widget



Event type
Event name 
Description 
Broadcast iEvent 
com.ibm.mashups.builder.pageSwitched
Before the navigation widget switches to a new page, the widget loads the current theme, if necessary, and renders the navigation user interface. Then, the navigation widget broadcasts this event to inform other widgets that the current page is now the new page. If users delete all pages, the page ID will be set as null in the event payload.
Handle iEvent 
com.ibm.mashups.builder.switchPage
The navigation widget handles this event to switch to the given page ID in the event payload. If the page ID is not provided, the first page in the current user's navigation is loaded. If no page exists in the current user's navigation, the navigation widget will prompt the user to create a new page.
Handle iEvent 
com.ibm.mashups.builder.refreshNavigation
This event is used when the navigation model is changed, for example when the user changes the title of the current page.
Handle iEvent 
com.ibm.mashups.builder.openPage
This event opens the global page using the given page ID.
Handle iEvent 
com.ibm.mashups.builder.closePage
This event redirects to the previous page when users close the current page.

Space selector widget



Event type
Event name 
Description 
Broadcast iEvent 
com.ibm.mashups.builder.switchPage
This event triggers a page switch when user switch spaces.
Handle iEvent 
com.ibm.mashups.builder.switchSpace
This event switches to a space with a given ID.
Handle iEvent 
com.ibm.mashups.builder.pageSwitched
Using this event, the space selector updates itself when users switch pages.
Handle iEvent 
com.ibm.mashups.builder.refreshSpaceSelector
This event refreshes the space selector menu.


Page action menu widget



 Event type
Event name 
Description  
Broadcast iEvent
com.ibm.mashups.builder.displayInMashupDialog
The page menu widget broadcasts this event to tell the dialog displayer widget to load various system widgets such as share page, publish page, embed page, and edit page.
Broadcast iEvent
com.ibm.mashups.builder.switchPage
When users click Delete in the page action menu to delete the current page, this event switches to the first page or parent page.
Handle iEvent
com.ibm.mashups.builder.changePageMode
This event updates which options are available on the page action menu according to different page modes. For example, when the page is in view mode, the Edit page option is disabled.
Handle iEvent
com.ibm.mashups.builder.pageSwitched
This event updates which options are available on the page action menu after users switch to another page. For example, users may have different view and edit permissions for different pages.

Page title widget



Event type 
Event name
Description 
Handle iEvent 
com.ibm.mashups.builder.pageSwitched
This event updates the page title when users switch pages.
Handle iEvent
com.ibm.mashups.builder.updatePageTitle
This event updates the page title when it changes.


Palette widget



Event type 
Event name 
Description  
Broadcast iEvent 
com.ibm.mashups.builder.addWidgetFromToolbox
The palette widget broadcasts this event to tell the layout widget to create a widget instance according to the widget definition ID in the event payload.
Broadcast iEvent
com.ibm.mashups.builder.displayInMashupDialog
This event tells the dialog displayer widget to load the embed widget.
Handle iEvent
com.ibm.mashups.builder.changePageMode
This event updates the palette according to a new page mode. For example, when the page is in view mode, the palette widget is hidden.
Handle iEvent
com.ibm.mashups.builder.refreshPalette
This event refreshes the palette when the catalog model is changed, for example when users add widgets from the catalog to the mashup builder.

Page icons widget



Event type 
Event name  
Description   
Broadcast iEvent
com.ibm.mashups.builder.savePage
This event saves the page when users click the Save icon.
Broadcast iEvent
com.ibm.mashups.builder.displayInMashupDialog
This event tells the dialog displayer widget to load hidden widgets.
Handle iEvent
com.ibm.mashups.builder.changePageMode
This event updates the page icons according to the new page mode. For example, when the page is in view mode, page icons are hidden.


Layout widget



Event type 
Event name  
Description   
Broadcast iEvent 
com.ibm.mashups.builder.hideWidget
The layout widget broadcasts this event to tell the hidden widgets corral widget to hide the specified widget. 
Broadcast iEvent
com.ibm.mashups.builder.widgetResized
The layout widget broadcasts that the widget has been resized.
Broadcast iEvent
com.ibm.mashups.builder.createAutoWire
When users drag and drop one widget onto another widget, this event tells the wiring widget to create a wire.
Broadcast iEvent
com.ibm.mashups.builder.createQuickWire
This event creates a wire between two widgets. 
Handle iEvent
com.ibm.mashups.builder.pageSwitched
The layout widget handles this event to load the page content and metadata according to the page ID that is passed in through this event's payload. The layout widget loads only widgets that have the visible attribute set to true.
Handle iEvent
com.ibm.mashups.builder.changePageMode
This event updates the layout widget according to the new page mode. For example, when a page is in view mode, skin artifacts are hidden.
Handle iEvent
com.ibm.mashups.builder.addWidget
This event creates a widget instance according to the widget definition ID in the event payload.
Handle iEvent
com.ibm.mashups.builder.displayWidget
This event displays a widget inside the layout widget.
Handle iEvent
com.ibm.mashups.builder.renameWidget
This event renames a widget.
Handle iEvent
com.ibm.mashups.builder.changeSkin
This event changes the skin of widgets.
Handle iEvent
com.ibm.mashups.builder.skinLoaded
This event creates a widget skin's resize and drag handlers.
Handle iEvent
com.ibm.mashups.builder.resetStyle
This event resets the inline style of the layout widget.
Handle iEvent
com.ibm.mashups.builder.resizeWidget
This event updates the size of the widget's skin.
Handle iEvent
com.ibm.mashups.builder.resizeAction
This event handles requests to resize the widget.
Handle iEvent
com.ibm.mashups.builder.moveAction
This event handles requests to move the widget.
Handle iEvent
com.ibm.mashups.builder.highlightWidget
This event highlights a widget.
Handle iEvent
com.ibm.mashups.builder.removeWidgetHighlight
This event removes the highlight from a widget.
Handle iEvent
com.ibm.mashups.builder.addNewWire
This event adds the wire definition in the widget markup.
Handle iEvent
com.ibm.mashups.builder.removeWire
This event removes the wire definition in the widget markup.

Hidden widgets corral widget



Event type 
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.displayWidget
The hidden widgets corral broadcasts this event to tell the layout widget to hide the specified non-system widget. 
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the hidden widgets corral dialog box.
Broadcast iEvent
com.ibm.mashups.builder.createQuickWire
This event creates a wire between two widgets.
Handle iEvent
com.ibm.mashups.builder.pageSwitched
The hidden widgets corral handles this event to load the page content according to the page ID that is passed in through the event's payload. The hidden widgets corral loads only the widgets that have the visible attribute set to false.
Handle iEvent
com.ibm.mashups.builder.changePageMode
This event updates the hidden widgets corral according to a new page mode. For example, when the page is in view mode, the hidden widgets corral is not visible.
Handle iEvent
com.ibm.mashups.builder.hideWidget
This event moves a widget into the hidden widgets corral.
Handle iEvent
com.ibm.mashups.builder.renameWidget
This event renames a widget.
Handle iEvent
com.ibm.mashups.builder.skinLoaded
This event creates a widget skin's drag handler.
Handle iEvent
com.ibm.mashups.builder.highlightWidget
This event highlights a widget.
Handle iEvent
com.ibm.mashups.builder.removeWidgetHighlight
This event removes the highlight from a widget.
Handle iEvent
com.ibm.mashups.builder.addNewWire
This event adds a wire definition in the widget markup.
Handle iEvent
com.ibm.mashups.builder.removeWire
This event removes a wire definition in the widget markup.
Handle iEvent
com.ibm.mashups.builder.autoWireCreated
This event moves widgets into the hidden widgets corral after a wire is created.

Mode selector widget



 Event type
Event name 
Description
Broadcast iEvent 
com.ibm.mashups.builder.changePageMode
This event informs other system widgets that the page mode has changed.
Broadcast iEvent
com.ibm.mashups.builder.savePage
This broadcast event saves a page when the page mode is switched from edit to view mode.
Broadcast iEvent
com.ibm.mashups.builder.displayInMashupDialog
This event tells the dialog displayer widget to display other system widgets in dialog boxes, for example the Page Source and More Pages dialog boxes.
Broadcast iEvent
com.ibm.mashups.builder.loadPageSource
This event tells the dialog displayer widget to load the page source. 
Broadcast iEvent
com.ibm.mashups.builder.viewMorePage
This event tells the dialog displayer widget to load the interface for viewing more pages. 
Handle iEvent 
com.ibm.mashups.builder.pageSwitched
When users switch pages, this event is used to switch to view mode and update the user permissions based on the new page ID.
Handle iEvent 
com.ibm.mashups.builder.pageCreated
When users switch to a newly created page, this event is used to specify edit mode as the default page mode.


Dialog displayer widget



Event type 
Event name 
Description
Handle iEvent 
com.ibm.mashups.builder.displayInMashupDialog
This event is used to display dialog boxes.
Handle iEvent 
com.ibm.mashups.builder.closeMashupDialog
This event is used to close dialog boxes.


Wiring interface widget



Event type 
Event name  
Description 
Broadcast iEvent 
com.ibm.mashups.builder.addNewWire 
This event gets broadcast when users create a new wire between widgets.  
Broadcast iEvent 
com.ibm.mashups.builder.removeWire
This event gets broadcast when users remove a wire between widgets. 
Broadcast iEvent
com.ibm.mashups.builder.autoWireCreated
This event gets broadcast when two widgets are auto-wired through a drag-and-drop action.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the wiring interface dialog box.
Handle iEvent
com.ibm.mashups.builder.editWire
This event loads the wiring interface when editing a wire. 


Autowiring manager widget



Event type
Event name  
Description 
Handle iEvent
com.ibm.mashups.builder.createQuickWire
This event creates a wire between two widgets.
Handle iEvent
com.ibm.mashups.builder.displayWireGraph
This event loads a widget's wiring graph. 
Handle iEvent
com.ibm.mashups.builder.createAutoWire
When users drag and drop one widget onto another widget, this broadcast event tells the wiring widget to create a wire.


Page source widget



Event type 
Event name
Description  
Broadcast iEvent 
com.ibm.mashups.builder.closeMashupDialog
This event closes the View Source dialog box.
Handle iEvent 
com.ibm.mashups.builder.loadPageSource
This event loads the View Source dialog box. 
Handle iEvent
com.ibm.mashups.builder.savePage
This event saves the current page.


Edit page widget



 Event type 
Event name 
Description   
Broadcast iEvent  
com.ibm.mashups.builder.closeMashupDialog
This event closes the Edit dialog box for pages.
Broadcast iEvent
com.ibm.mashups.builder.savePage
This broadcast event tells the page source widget to save the page before the page theme changes.
Broadcast iEvent
com.ibm.mashups.builder.updatePageTitle
This broadcast event tells the page title widget to update its user interface.
Broadcast iEvent
com.ibm.mashups.builder.refreshNavigation
This broadcast event tells the navigation widget to refresh itself.
Handle iEvent
com.ibm.mashups.builder.editPage
This event loads the Edit dialog box for pages.


Sharing pages and spaces widget



Event type 
Event name
Description 
Broadcast iEvent 
com.ibm.mashups.builder.closeMashupDialog
This event closes the Share dialog boxes for spaces and pages.
Handle iEvent
com.ibm.mashups.builder.sharePage
This event loads the Share dialog box for pages.
Handle iEvent
com.ibm.mashups.builder.shareSpace
This event loads the Share dialog box for spaces.


Publish widget



 Event type 
Event name 
Description  
Broadcast iEvent 
com.ibm.mashups.builder.closeMashupDialog
This event closes the Publish dialog box.
Handle iEvent
com.ibm.mashups.builder.publishPage
This event loads the Publish dialog box.


Move page widget



Event type 
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Move dialog box.
Handle iEvent
com.ibm.mashups.builder.com.ibm.mashups.builder.reorderPage
This event receives a page and space ID and then reorders the page. 


View more pages widget



 Event type
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the More Pages dialog box.
Handle iEvent
com.ibm.mashups.builder.viewMorePage
This event loads the More Pages dialog box. 


Change page owner widget



Event type 
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Change Page Owner dialog box.
Handle iEvent
com.ibm.mashups.builder.changeOwner
This event receives a page ID and displays the Change Page Owner dialog box so users can change the page owner.


Embed page widget



Event type 
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Display on a Web Page dialog box.
Handle iEvent
com.ibm.mashups.builder.embedPage
This event loads the Display on a Web Page dialog box.


Rename widget



 Event type
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Rename dialog box.
Handle iEvent
com.ibm.mashups.builder.renameAction
This event loads the Rename dialog box.


Import widget



 Event type
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Import dialog box.
Handle iEvent
com.ibm.mashups.builder.importWidgetAction
This event receives either a space ID for a page import or no space ID for a space import.


Embed widget



  Event type
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Add to Web Page dialog box.
Handle iEvent
com.ibm.mashups.builder.embedWidget
This event loads the Add to Web Page dialog box.


Create page widget



  Event type
Event name
Description   
Handle iEvent
com.ibm.mashups.builder.createPage
This event loads the Create Page dialog box.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Create Page dialog box.
Broadcast iEvent
com.ibm.mashups.builder.refreshNavigation
This broadcast event tells the navigation widget to refresh itself.


Create space widget



Event type 
ievent name
Description   
Handle iEvent
com.ibm.mashups.builder.createSpace
This event loads the Create Space dialog box.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Create Space dialog box.
Broadcast iEvent
com.ibm.mashups.builder.spacemanager.spaceCreated
This event tells the space manager how to refresh the space selector.
Broadcast iEvent
com.ibm.mashups.builder.switchSpace
This event tells the space selector to switch to the current space.


Edit space widget



 Event type
ievent name
Description   
Handle iEvent
com.ibm.mashups.builder.editSpace
This event loads the Edit Settings dialog box.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Edit Settings dialog box.
Broadcast iEvent
com.ibm.mashups.builder.displayInMashupDialog
This event tells the display helper to display the Change Owner dialog box.
Broadcast iEvent
com.ibm.mashups.builder.switchSpace
This event tells the space selector to switch the current space if the space owner has changed.
Broadcast iEvent
com.ibm.mashups.builder.spacemanager.spaceOwnerChanged
This event tells the space manager that a space owner has changed.
Broadcast iEvent
com.ibm.mashups.builder.refreshSpaceSelector
This event tells the space selector to refresh due to a change in the space title.


Copy space widget



 Event type
Event name
Description   
Handle iEvent
com.ibm.mashups.builder.copySpace
This event loads the Duplicate dialog box.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Duplicate dialog box.
Broadcast iEvent
com.ibm.mashups.builder.switchSpace
This event tells the space selector to switch from the current space.
Broadcast iEvent
com.ibm.mashups.builder.spacemanager.spaceCreated
This event tells the space manager how to refresh the space selector.


Change space owner widget



Event type 
Event name
Description   
Handle iEvent
com.ibm.mashups.builder.changeSpaceOwner
This event loads the Change Owner dialog box.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the Change Owner dialog box.


Space manager widget



Event type 
Event name
Description   
Handle iEvent
com.ibm.mashups.builder.manageSpaces
This event loads the space manager.
Handle iEvent
com.ibm.mashups.builder.spacemanager.spaceCreated
When a new space is created, this event refreshes the space selector and appends the new space to the list of spaces.
Handle iEvent
com.ibm.mashups.builder.spacemanager.pageThemeChanged
This event caches pages with theme changes and then refreshes the current page if the theme changes.
Handle iEvent
com.ibm.mashups.builder.spacemanager.deletePage
This event caches deleted pages and then refreshes if the current page is deleted.
Handle iEvent
com.ibm.mashups.builder.spacemanager.spaceOwnerChanged
This event caches owner-changed spaces and then switches the space if the current space owner is changed.
Handle iEvent
com.ibm.mashups.builder.spacemanager.pageCreated
This event announces that a new page has been created and refreshes the list of spaces and pages.
Handle iEvent
com.ibm.mashups.builder.exportSpace
This event invokes the export space API to export the space.
Handle iEvent
com.ibm.mashups.builder.deleteSpace
This event caches deleted spaces and then switches the space if the current space is deleted.
Handle iEvent
com.ibm.mashups.builder.addSpaceToFavorite
This event adds favorite spaces to the Favorites Quick Access section in the space manager.
Handle iEvent
com.ibm.mashups.builder.removeSpaceFromFavorite
This event removes non-favorite spaces from the Favorites Quick Access section in the space manager.
Broadcast iEvent
com.ibm.mashups.builder.refreshSpaceSelector
This event refreshes the space selector if a new space is created.
Broadcast iEvent
com.ibm.mashups.builder.switchSpace
This event switches the current space to a different space. Also used when the current space is deleted.
Broadcast iEvent
com.ibm.mashups.builder.switchPage
This event switches the current page to a different page.
Broadcast iEvent
com.ibm.mashups.builder.saveCheck
This event checks if the current page contains unsaved edits when switching spaces.
Broadcast iEvent
com.ibm.mashups.builder.closeMashupDialog
This event closes the space manager.
Broadcast iEvent
com.ibm.mashups.builder.refreshNavigation
This event refreshes the navigation if the current page is deleted.


Create page widget



Event type 
Event name
Description   
Handle iEvent
com.ibm.mashups.builder.createPage
This event opens a new page.


Create widget builder widget



 Event type
Event name
Description   
Broadcast iEvent
com.ibm.mashups.builder.createNewWidget
This event opens the widget builder.

  • Edit
  • More Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (10)
collapsed Versions (10)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (10)Feb 15, 2010 2:58:04 PMAnna G O'Neal  IBM contributor
9Feb 15, 2010 1:53:21 PMAnna G O'Neal  IBM contributor
8Feb 15, 2010 1:28:30 PMAnna G O'Neal  IBM contributor
7Feb 15, 2010 11:20:34 AMAnna G O'Neal  IBM contributor
6Feb 15, 2010 11:17:20 AMAnna G O'Neal  IBM contributor
5Feb 15, 2010 11:06:15 AMAnna G O'Neal  IBM contributor
4Feb 15, 2010 9:59:45 AMAnna G O'Neal  IBM contributor
3Feb 15, 2010 9:23:41 AMAnna G O'Neal  IBM contributor
2Feb 15, 2010 8:53:31 AMAnna G O'Neal  IBM contributor
1Feb 15, 2010 8:29:20 AMAnna G O'Neal  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use