User Guide

111
8
CHAPTER 8
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 8
access your JavaBeans, the JavaBeans must reside in the Configuration/Classes folder.
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.
NOTE
The function arguments described in this chapter sometimes contain an argument called
packageName.className, which is intended to represent a single value.
000_DW_API_Print.book Page 111 Wednesday, July 20, 2005 11:58 AM