162
Chapter 12: Workspace
Returns
Nothing.
Example
The following example inserts the navigation bar Flash component, which resides in the
Components/Objects/FlashElements/Navigation folder, into the current document:
dom.insertFlashElement("\Navigation\navBar.swc");
dreamweaver.objectPalette.getMenuDefault()
Availability
Dreamweaver MX 2004.
Description
Retrieves the ID string of the default item for the associated menu.
Arguments
menuId
•
The
menuId
argument is the string that defines the menu in the insertbar.xml file.
Returns
A string value defining the ID of the default item.
Example
The following example assigns the current default object for the Media menu to the
defID
variable:
var defId = dw.objectPalette.getMenuDefault("DW_Media");
dreamweaver.objectPalette.setMenuDefault()
Availability
Dreamweaver MX 2004.
Description
Sets the default object for a pop-up menu. The default object’s icon represents the specified pop-
up menu on the Insert bar. The user can click on the default object to insert it, or click on the
arrow beside the default object to open the pop-up menu and see the other objects in that menu.
Dreamweaver sets the new menu default the next time the user opens Dreamweaver or uses the
Reload Extensions command.
Arguments
menuId, defaultId
•
The
menuId
argument is the string that defines the menu in the insertbar.xml file.
•
The
defaultId
argument is the string that defines the new default object in the insertbar.xml
field.
000_DW_API_Print.book Page 162 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...