User Guide
111
CHAPTER 9
The JavaBeans API
This chapter explains the APIs for JavaBeans; the MMJB*() functions are JavaScript hooks that
invoke Java introspection calls for JavaBeans support. These functions get class names, methods,
properties, and events from the JavaBeans, which can appear in the Dreamweaver user interface
(UI). To use these JavaScript functions and let Macromedia Dreamweaver MX 2004 access your
JavaBeans, the JavaBeans must reside in the Configuration/Classes folder.
Note: The function arguments described in this chapter sometimes contain an argument called
packageName.className, which is intended to represent a single value.
The JavaBeans API
The following functions are methods of the MMJB object.
MMJB.getClasses()
Availability
Dreamweaver UltraDev 4.
Description
This function reads all the JavaBeans class names from the Configuration/Classes folder.
Arguments
None.
Returns
A string array of class names that are located in Configuration/Classes folder; an error returns an
empty array.
MMJB.getClassesFromPackage()
Availability
Dreamweaver UltraDev 4.
Description
This function reads all the JavaBeans classes from the package.
000_DW_API_Print.book Page 111 Wednesday, August 20, 2003 9:14 AM