className

この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

Summary

The fully qualified name of a Java class in a package other than netscape, java, or sun that is available to JavaScript.

Property of Packages
Implemented in JavaScript 1.1

Syntax

Packages.classname

Where classname is the fully qualified name of a Java class.

Description

You must use the className property of the Packages object to access classes outside the netscape, sun, and java packages.

Examples

Example: Using Packages.classname

The following code accesses the constructor of the CorbaObject class in the myCompany package from JavaScript:

var theObject = new Packages.myCompany.CorbaObject()

In this example, the value of the className property is myCompany.CorbaObject, the fully qualified path name of the CorbaObject class.

Document Tags and Contributors

Contributors to this page: ethertank, Maian, Dria, Marcoos
最終更新者: ethertank,