Most of the PARAMs map events from the DiagramListener interface to names of JavaScript functions invoked when an event is raised. You can find a full list below. That's code from the applet class and the string arguments are what you should use as NAME values of the PARAM tags.
"ShapeLibrary" should specify an URL to the shape library file; "ShapeLibraryLocation" is its old name. It does not work with local file paths, but with http URLs, e.g. the value should be "
http://www.abc.com/test.shl".
There is one additional PARAM you could use, called DiagramData. Its value should be a string returned by the saveToString(Xml) method, and if it's set, the applet will call loadFromString to load the diagram content from the string.
If you need to initialize some properties of the Diagram object, add a handler for the AppletStarted event and call the property setter methods from the JavaScript handler.
I hope that helps,
Stoyan
actionRecordedScript = getParameter("ActionRecorded");
actionRecordingScript = getParameter("ActionRecording");
actionRedoneScript = getParameter("ActionRedone");
actionUndoneScript = getParameter("ActionUndone");
appletStartedScript = getParameter("AppletStarted");
cellClickedScript = getParameter("CellClicked");
cellDoubleClickedScript = getParameter("CellDoubleClicked");
cellTextEditedScript = getParameter("CellTextEdited");
cellTextEditingScript = getParameter("CellTextEditing");
containerChildAddedScript = getParameter("ContainerChildAdded");
containerChildRemovedScript = getParameter("ContainerChildRemoved");
containerFoldedScript = getParameter("ContainerFolded");
containerUnfoldedScript = getParameter("ContainerUnfolded");
deserializeTagScript = getParameter("DeserializeTag");
docClickedScript = getParameter("Clicked");
doubleClickedScript = getParameter("DoubleClicked");
drawAnchorPointScript = getParameter("DrawAnchorPoint");
drawBackgroundScript = getParameter("DrawBackground");
drawCellScript = getParameter("DrawCell");
drawLinkScript = getParameter("DrawLink");
drawNodeScript = getParameter("DrawNode");
enterInplaceEditModeScript = getParameter("EnterInplaceEditMode");
expandButtonClickedScript = getParameter("ExpandButtonClicked");
groupDestroyedScript = getParameter("GroupDestroyed");
imageLoadedScript = getParameter("ImageLoadedScript");
initializeLinkScript = getParameter("InitializeLink");
initializeNodeScript = getParameter("InitializeNode");
itemAddedScript = getParameter("ItemAdded");
itemRemovedScript = getParameter("ItemRemoved");
keyDownScript = getParameter("KeyDownScript");
keyPressScript = getParameter("KeyPressScript");
keyUpScript = getParameter("KeyUpScript");
leaveInplaceEditModeScript = getParameter("LeaveInplaceEditMode");
linkActivatedScript = getParameter("LinkActivated");
linkClickedScript = getParameter("LinkClicked");
linkCreatedScript = getParameter("LinkCreated");
linkCreatingScript = getParameter("LinkCreating");
linkDeactivatedScript = getParameter("LinkDeactivated");
linkDeletedScript = getParameter("LinkDeleted");
linkDeletingScript = getParameter("LinkDeleting");
linkDeselectedScript = getParameter("LinkDeselected");
linkDoubleClickedScript = getParameter("LinkDoubleClicked");
linkModifiedScript = getParameter("LinkModified");
linkModifyingScript = getParameter("LinkModifying");
linkMouseEnterScript = getParameter("MouseEnterLink");
linkMouseLeaveScript = getParameter("MouseLeaveLink");
linkRoutedScript = getParameter("LinkRouted");
linkSelectedScript = getParameter("LinkSelected");
linkSelectingScript = getParameter("LinkSelecting");
linkStartModifyingScript = getParameter("LinkStartModifying");
linkTextEditedScript = getParameter("LinkTextEdited");
linkTextEditingScript = getParameter("LinkTextEditing");
nodeActivatedScript = getParameter("NodeActivated");
nodeClickedScript = getParameter("NodeClicked");
nodeCreatedScript = getParameter("NodeCreated");
nodeCreatingScript = getParameter("NodeCreating");
nodeDeactivatedScript = getParameter("NodeDeactivated");
nodeDeletedScript = getParameter("NodeDeleted");
nodeDeletingScript = getParameter("NodeDeleting");
nodeDeselectedScript = getParameter("NodeDeselected");
nodeDoubleClickedScript = getParameter("NodeDoubleClicked");
nodeModifiedScript = getParameter("NodeModified");
nodeModifyingScript = getParameter("NodeModifying");
nodeMouseEnterScript = getParameter("MouseEnterNode");
nodeMouseLeaveScript = getParameter("MouseLeaveNode");
nodeSelectedScript = getParameter("NodeSelected");
nodeSelectingScript = getParameter("NodeSelecting");
nodeStartModifyingScript = getParameter("NodeStartModifying");
nodeTextEditedScript = getParameter("NodeTextEdited");
nodeTextEditingScript = getParameter("NodeTextEditing");
selectionMovedScript = getParameter("SelectionMovedScript");
selectionMovingScript = getParameter("SelectionMoving");
serializeTagScript = getParameter("SerializeTag");
tableSectionCollapsedScript = getParameter("TableSectionCollapsedScript");
tableSectionExpandedScript = getParameter("TableSectionExpandedScript");
treeCollapsedScript = getParameter("TreeCollapsed");
treeExpandedScript = getParameter("TreeExpanded");
validateAnchorPointScript = getParameter("ValidateAnchorPoint");
viewRemovedScript = getParameter("ViewRemoved");