The JavaBeans API

 < Day Day Up > 

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.

Arguments

 packageName.pathName 

  • The packageName.pathName argument is the path to the package. It must be a Java JAR or ZIP Java archive (for example, C:/jdbcdrivers/Una2000_Enterprise.zip).

Returns

A string array of class names inside the particular JAR or ZIP Java archive; an error returns an empty array.

MMJB.getErrorMessage()

Availability

Dreamweaver UltraDev 4.

Description

This function gets the last error message from Dreamweaver that occurred while using the MMJB interface.

Arguments

None.

Returns

A string of the Dreamweaver message from the last error.

MMJB.getEvents()

Availability

Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.

Description

Introspects the JavaBeans class and returns its events.

Arguments

 packageName.className, {packagePath} 

  • The packageName.className argument is the name of the class. The class must reside in a JAR or ZIP Java archive. If packagePath is omitted, the archive must reside in your system classpath or be a class file that is installed in the Configuration/Classes folder.

  • The packagePath argument is an optional string that points to the location of the JAR or ZIP Java archive that contains className.

Returns

A string array of the events associated with className; an error returns an empty array.

MMJB.getIndexedProperties()

Availability

Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.

Description

Introspects the JavaBeans class and returns its indexed properties, which are design patterns that behave the same way as collections.

Arguments

 packageName.className, {packagePath} 

  • The packageName.className argument is the name of the class. The class must reside in a JAR or ZIP Java archive. If packagePath is omitted, the archive must reside in your system classpath or be a class file that is installed in the Configuration/Classes folder.

  • The packagePath argument, which is optional, is a string that points to the location of the JAR or ZIP Java archive that contains className.

Returns

A string array of the indexed properties associated with className; an error returns an empty array.

MMJB.getMethods()

Availability

Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.

Description

Introspects the JavaBeans class and returns its methods.

Arguments

 packageName.className, {packagePath} 

  • The packageName.className argument is the name of the class. The class must reside in a JAR or ZIP Java archive. If packagePath is omitted, the archive must reside in your system classpath or be a class file that is installed in the Configuration/Classes folder.

  • The packagePath argument is an optional string that points to the location of the JAR or ZIP Java archive that contains className.

Returns

A string array of the methods associated with className; an error returns an empty array.

MMJB.getProperties()

Availability

Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.

Description

Introspects the JavaBeans class and returns its properties.

Arguments

 packageName.className, {packagePath} 

  • The packageName.className argument is the name of the class. The class must reside in a JAR or ZIP Java archive. If packagePath is omitted, the archive must reside in your system classpath or be a class file that is installed in the Configuration/Classes folder.

  • The packagePath argument is an optional string that points to the location of the JAR or ZIP Java archive that contains className.

Returns

A string array of the properties associated with className; an error returns an empty array.

MMJB.getReadProperties()

Availability

Dreamweaver MX.

Description

Gets read-only properties for JavaBeans that support get accessor calls.

Arguments

 packageName.className, {packagePath} 

  • The packageName.className argument is the name of the class. The class must reside in a JAR or ZIP Java archive. If packagePath is omitted, the archive must reside in your system classpath or be a class file that is installed in the Configuration/Classes folder.

  • The packagePath argument, which is optional, is a string that points to the location of the JAR or ZIP Java archive that contains className.

Returns

A string array of read-only properties associated with className; an error returns an empty array.

MMJB.getWriteProperties()

Availability

Dreamweaver MX.

Description

Gets write-only properties for JavaBeans that support set method calls.

Arguments

 packageName.className, {packagePath} 

  • The packageName.className argument is the name of the class. The class must reside in a JAR or ZIP Java archive. If packagePath is omitted, the archive must reside in your system classpath or be a class file that is installed in the Configuration/Classes folder.

  • The packagePath argument, which is optional, is a string that points to the location of the JAR or ZIP Java archive that contains className.

Returns

A string array of write-only properties associated with className; an error returns an empty array.

     < Day Day Up > 


    Developing Extensions for Macromedia Dreamweaver 8
    Developing Extensions for Macromedia Dreamweaver 8
    ISBN: 0321395409
    EAN: 2147483647
    Year: 2005
    Pages: 282

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net