Specifications

345
CHAPTER 29
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 your Dreamweaver MX user
interface. To use these JavaScript functions and let Dreamweaver access your JavaBeans, the
JavaBeans must reside in the Configuration/Classes folder.
Note: packageName.className is a single string input.
MMJB.getProperties()
Availability
Dreamweaver UltraDev 4
Description
Introspects the JavaBeans class and returns its properties.
Arguments
packageName.className
packageName.className
is the name of the class, which is part of the class path. It must be a
.jar or .zip Java archive that resides in your system class path or a .class file that is installed in
the Configuration/Classes folder.
Returns
A string array of the JavaBeans properties; an error returns an empty array.
MMJB.getMethods()
Availability
Dreamweaver UltraDev 4
Description
Introspects the JavaBeans class and returns its methods.
Arguments
packageName.className
packageName.className
is the package name of the class, which is part of the class path. It must
be a Java
.jar or .zip Java archive.
Returns
A string array of the JavaBeans methods; an error returns an empty array.