JavaClassName property returns the short class name of an object of a Java application that was created with AWT, Swing, SWT or WFC libraries. Examples of short class names are
If the object is an array,
JavaClassName contains the brackets at the end of the returned string, for instance, if JavaAppObject is an array of components, the property will return
Component. The number of brackets correspond to the array dimensions. For instance, if JavaAppObject is an array that has three dimensions, the property will contain three brackets at the end:
If the object is an array of simple types such as integer, string or boolean, the
JavaClassName will return the type name and brackets, for instance,
To address objects of AWT, Swing and SWT Java applications, use the
SWTObject methods. These methods can address an object by its name, or by the class name, accessible name and index. The
JavaClassName property value is equal to the first parameter (class name) used by these methods.
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
All Java application objects.
To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The string holding the short class name of a desired object.
To get the object’s full class name (including the package names), use the
JavaClassName property is only available if the Java Application Support plugin is installed and the application under test is a Java application created with AWT, Swing, SWT or WFC libraries. Otherwise, this property is absent in the object’s property list.