|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public IEvent
com.ibm.mashups.builder.IEvent defines all the public builder iEvents.
Usage: call com.ibm.mashups.builder.iEvents.SWITCH_PAGE to retreive the ievent name "com.ibm.mashups.builder.switchPage".
1. IEvent naming convention.
IEvent name such as SWITCH_PAGE
and PAGE_SWITCHED
followed the basic rules:
(1) Verb + Noun: the iEvent is broadcast before the action happen.
(2) Noun + Past Tense Verb: the iEvent is broadcast after the action happen.
2. Terminology
(1) System iWidget: iWidget defined in theme.
(2) User iWidget: iWidget which user can add to a mashup page.
(3) Layout iWidget: a kind of system iWidget that manages user iWidget instances.
(4) None visible area: a kind of system iWidget that contains user iWidget instances in a hidden area.
(5) iWidget definition id: unique id of the iWidget metadata in enabler catalog API.
(6) iWidget instance id: unique id of the iWidget instance.
Field Summary | |
---|---|
String |
SWITCH_PAGE
Description: System iWidget should broadcast SWITCH_PAGE iEvent to switch to a given page. |
String |
PAGE_SWITCHED
Description: Navigation iWidget must broadcast PAGE_SWITCHED iEvent after page is switched. |
String |
SWITCH_SPACE
Description: System iWidget should broadcast SWITCH_SPACE iEvent to switch to a given space. |
String |
REFRESH_SPACE_SELECTOR
Description: System iWidget broadcasts REFRESH_SPACE_SELECTOR iEvent to announce the space model has been changed. |
String |
REFRESH_SPACE_LIST_IN_SPACE_MANAGER
Description: REFRESH_SPACE_LIST_IN_SPACE_MANAGER iEvent is broadcasted to refresh the space list in the space manager when space manager is opened Space Manager iWidget must handle this iEvent to retrieve the latest space model and re-refresh the space list Value: "com.ibm.mashups.builder.spacemanager.refreshSpaceList" Payload: N/A |
String |
REFRESH_NAVIGATION
Description: System iWidget broadcasts REFRESH_NAVIGATION iEvent to announce the navigation model has been changed. |
String |
REFRESH_PALETTE
Description: System iWidget broadcasts REFRESH_PALETTE iEvent to announce the catalog model has been changed. |
String |
LAYOUT_REFRESH
Description: System iWidget can broadcast LAYOUT_REFRESH iEvent to announce the layout model has been changed. |
String |
LAYOUT_REFRESHED
Description: TemplateLayout iWidget broadcasts LAYOUT_REFRESHED iEvent after layout is done refreshing. |
String |
REFRESH_CONTEXT_MENU
Description: System iWidget can broadcast REFRESH_CONTEXT_MENU iEvent to notify a context menu's listeners that it was updated. |
String |
VIEW_HIDDEN_WIDGETS
Description: System iWidget can broadcast VIEW_HIDDEN_WIDGETS iEvent to show any hidden-widget containers on the page. |
String |
HIDE_HIDDEN_WIDGETS
Description: System iWidget can broadcast HIDE_HIDDEN_WIDGETS iEvent to hide any hidden-widget containers on the page. |
String |
CHANGE_PAGE_MODE
Description: CHANGE_PAGE_MODE iEvent will be broadcast when page mode is changed. |
String |
ADD_WIDGET_FROM_TOOLBOX
Deprecated: ADD_WIDGET_FROM_TOOLBOX iEvent is replaced witch ADD_WIDGET. |
String |
ADD_WIDGET
Description: System iWidget can broadcast ADD_WIDGET iEvent to create a user iWidget instance. |
String |
RESET_STYLE
Description: RESET_STYLE iEvent is broadcast to recreate a empty style of layout iWidget. |
String |
DISPLAY_WIDGET
Description: DISPLAY_WIDGET iEvent is broadcast to move a user iWidget instance from none visible area to layout iWidgets. |
String |
HIDE_WIDGET
Description: HIDE_WIDGET iEvent is broadcast to move a user iWidget instance from layout iWidget to none visible area. |
String |
RENAME_WIDGET
Description: RENAME_WIDGET iEvent is broadcast to rename a user iWidget instance. |
String |
RENAME_ACTION
Description: RENAME_ACTION iEvent is broadcast from iWidget context menu to inform another system iWidget to handle rename iWidget action. |
String |
MOVE_ACTION
Description: MOVE_ACTION iEvent is broadcast from iWidget context menu to inform another system iWidget to handle move iWidget action. |
String |
RESIZE_ACTION
Description: RESIZE_ACTION iEvent is broadcast from iWidget context menu to inform another system iWidget to handle resize iWidget action. |
String |
CHANGE_SKIN
Description: CHANGE_SKIN iEvent is broadcast to change the skin of a user iWidget instance. |
String |
SKIN_LOADED
Description: Mashup skin service broadcasts SKIN_LOADED iEvent when skin is loaded. |
String |
RESIZE_WIDGET
Description: RESIZE_WIDGET iEvent should be broadcast to adjust the width or height of user iWidget instance. |
String |
WIDGET_RESIZED
Description: WIDGET_RESIZED iEvent should be broadcast after the size of user iWidget instance is changed. |
String |
WIDGET_MOVED
Description: WIDGET_MOVED iEvent should be broadcast after a user iWidget instance is moved in the layout. |
String |
WIDGET_DELETED
Description: WIDGET_DELETED iEvent should be broadcast after a user iWidget instance has been deleted from the layout. |
String |
EMBED_PAGE
Description: System iWidget should broadcast EMBED_PAGE iEvent to embed a mashup page. |
String |
EMBED_WIDGET
Description: System iWidget broadcasts EMBED_WIDGET iEvent to embed a user iWidget. |
String |
LOAD_PAGESOURCE
Description: System iWidget broadcasts LOAD_PAGESOURCE iEvent to load the page source. |
String |
SAVE_PAGE
Description: System iWidget broadcasts SAVE_PAGE iEvent to save page source. |
String |
PAGE_SAVED
Description: PAGE_SAVED iEvent should be broadcast after the page has been saved. |
String |
EDIT_PAGE
Description: System iWidget broadcasts EDIT_PAGE iEvent to load page property. |
String |
UPDATE_PAGE_TITLE
Description: System iWidget broadcasts UPDATE_PAGE_TITLE iEvent to update page title. |
String |
HIGHLIGHT_WIDGET
Description: System iWidgets broadcasts HIGHLIGHT_WIDGET iEvent to make Layout iWidget highlight a specific user iWidget. |
String |
REMOVE_WIDGET_HIGHTLIGHT
Description: System iWidgets broadcasts REMOVE_WIDGET_HIGHTLIGHT iEvent to make Layout iWidget remove highlight of a specific user iWidget. |
String |
ADD_NEW_WIRE
Description: System iWidget broadcasts ADD_NEW_WIRE iEvent to inform layout iWidget to add a new wire. |
String |
REMOVE_WIRE
Description: System iWidget broadcasts REMOVE_NEW_WIRE iEvent to inform layout iWidget to remove an existing wire. |
String |
CREATE_AUTO_WIRE
Description: CREATE_AUTO_WIRE iEvent can be broadcast to add auto wire between the specified widget with other iWidget instances on the page. |
String |
AUTO_WIRE_CREATED
Description: AUTO_WIRE_CREATED iEvent will be broadcast to after a auto wire is added between two iWidget instances. |
String |
CREATE_QUICK_WIRE
Description: CREATE_QUICK_WIRE iEvent can be broadcast to add a wire between two iWidget instances automatically. |
String |
QUICK_WIRE_CREATED
Description: QUICK_WIRE_CREATED iEvent will be broadcast to after a quick wire is added between two iWidget instances. |
String |
EDIT_WIRE
Description: EDIT_WIRE iEvent can be broadcast to launch the wiring interface of a iWidget instance. |
String |
DISPLAY_WIRE_GRAPH
Description: DISPLAY_WIRE_GRAPH iEvent can be broadcast to display the wire graph of a iWidget instance. |
String |
SHARE_PAGE
Description: System iWidget broadcasts SHARE_PAGE iEvent to notice other iWidgets to start the sharing work. |
String |
SHARE_SPACE
Description: System iWidget broadcasts SHARE_SPACE iEvent to notice other iWidgets to start the sharing work. |
String |
PUBLISH_PAGE
Description: System iWidget broadcasts PUBLISH_PAGE iEvent to notice other iWidgets to start the publishing page work. |
String |
VIEW_MORE_PAGE
Description: System iWidget broadcasts VIEW_MORE_PAGE iEvent to notice other iWidgets it wants to accept pages from other users. |
String |
DISPLAY_IN_MASHUP_DIALOG
Description: DISPLAY_IN_MASHUP_DIALOG iEvent can be broadcast to display system iWidget in a configurable mashup dialog. |
String |
CLOSE_MASHUP_DIALOG
Description: CLOSE_MASHUP_DIALOG iEvent can be broadcast with a system iWidget id. |
String |
STATE_CHANGED
Description: STATE_CHANGED iEvent can be broadcast to change the widget's state, restore/max/min the current widget by layout widget. |
String |
OPEN_PAGE
Description: Broadcast OPEN_PAGE iEvent to open a given page and optionally broadcast widget events to it. |
String |
CLOSE_PAGE
Description: Broadcast CLOSE_PAGE iEvent to close a given page that was opened using the OPEN_PAGE iEvent. |
String |
CREATE_PAGE
Description: System iWidget broadcasts CREATE_PAGE iEvent to initiate Create Page widget, which allows to create a new page. |
String |
CREATE_SPACE
Description: System iWidget broadcasts CREATE_SPACE iEvent to initiate Create Space widget, which allows to create a new space. |
String |
EDIT_SPACE
Description: System iWidget broadcasts EDIT_SPACE iEvent to initiate Edit Space widget, which allows to edit existing space. |
String |
COPY_SPACE
Description: System iWidget broadcasts COPY_SPACE iEvent to initiate Copy Space widget, which allows to clone given space. |
String |
CHANGE_SPACE_OWNER
Description: System iWidget broadcasts CHANGE_SPACE_OWNER iEvent to initiate Change Space Owner widget, which allows to change space owner. |
String |
MANAGE_SPACES
Description: System iWidget broadcasts MANAGE_SPACES iEvent to initiate Space Manager widget, which allows to manage spaces. |
Field Detail |
---|
String SWITCH_PAGE
"com.ibm.mashups.builder.pageSwitched"
must be broadcast. null
. If null, Navigation iWidget will load current user's first page.
String PAGE_SWITCHED
null
which means no page available for current user.
String SWITCH_SPACE
null
. If null, SpaceSelector iWidget will switch to personal space.
String REFRESH_SPACE_SELECTOR
null
. If null, current space title will be used.
String REFRESH_SPACE_LIST_IN_SPACE_MANAGER
String REFRESH_NAVIGATION
String REFRESH_PALETTE
String LAYOUT_REFRESH
null
. If null, entire layout (all containers) will be refreshed.
String LAYOUT_REFRESHED
null
if entire layout was just refreshed. Or, id of individual layout container or control that was just refreshed.
String REFRESH_CONTEXT_MENU
null
. Payload type: text
String VIEW_HIDDEN_WIDGETS
null
.
String HIDE_HIDDEN_WIDGETS
null
.
String CHANGE_PAGE_MODE
null
.
String ADD_WIDGET_FROM_TOOLBOX
null
.
String ADD_WIDGET
null
.
String RESET_STYLE
String DISPLAY_WIDGET
null
.
String HIDE_WIDGET
null
.
String RENAME_WIDGET
null
.
String RENAME_ACTION
null
.
String MOVE_ACTION
null
.
String RESIZE_ACTION
null
.
String CHANGE_SKIN
null
.
String SKIN_LOADED
null
.
String RESIZE_WIDGET
null
.
String WIDGET_RESIZED
null
.
String WIDGET_MOVED
null
.
String WIDGET_DELETED
null
.
String EMBED_PAGE
null
.
String EMBED_WIDGET
null
.
String LOAD_PAGESOURCE
String SAVE_PAGE
null
.
String PAGE_SAVED
null
.
String EDIT_PAGE
null
.
String UPDATE_PAGE_TITLE
null
.
String HIGHLIGHT_WIDGET
null
.
String REMOVE_WIDGET_HIGHTLIGHT
null
.
String ADD_NEW_WIRE
null
.
String REMOVE_WIRE
null
.
String CREATE_AUTO_WIRE
null
.
String AUTO_WIRE_CREATED
null
.
String CREATE_QUICK_WIRE
null
.
String QUICK_WIRE_CREATED
null
.
String EDIT_WIRE
null
.
String DISPLAY_WIRE_GRAPH
null
.
String SHARE_PAGE
null
.
String SHARE_SPACE
null
.
String PUBLISH_PAGE
null
.
String VIEW_MORE_PAGE
String DISPLAY_IN_MASHUP_DIALOG
null
.EDIT_WIRE iEvent.
var dialogParam =
{
nodeWidth: "486px",
......
displayCloseButton: false,
hasRightBottomResizer: false
}
var payload =
{
widgetTypeId: "pageSoure",
eventName: "com.ibm.mashups.builder.loadPageSource",
eventPayload: ...,
dialogParam: dialogParam
}
var eventService = com.ibm.mashups.services.ServiceManager.getService("eventService");
eventService.broadcastEvent("com.ibm.mashups.builder.displayInMashupDialog", payload);
Payload type: json
String CLOSE_MASHUP_DIALOG
null
.
String STATE_CHANGED
null
.
String OPEN_PAGE
null
.
String CLOSE_PAGE
String CREATE_PAGE
spaceId
refers to under which space new page will be created, parentPageId
refers to new page's parent page. Must not be null
.
String CREATE_SPACE
createSpaceFromSpaceManager
should be set as true
if CREATE_SPACE is broadcast inside Space Manager, otherwise false
. Must not be null
.
String EDIT_SPACE
null
.
String COPY_SPACE
spaceId
is the id of space to be cloned, and copySpaceInSpaceManager
should be set as true
if COPY_SPACE is broadcast inside Space Manager, otherwise false
. Must not be null
.
String CHANGE_SPACE_OWNER
dojo.publish("com.ibm.mm.builder.spaceEditorWidget.OwnerName", [username]);
dojo.publish("com.ibm.mm.builder.spaceEditorWidget.OwnerId", [userid]);
null
.
String MANAGE_SPACES
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |