Description
The JavaFullClassName
property returns the full class name of a Java application object that was created with AWT, Swing, SWT or WFC libraries. The full class name includes the package name that the class belongs to and the class name itself. Examples of full class names are javax.swing.JMenuBar
or javax.swing.JButton
.
If the object is an array, JavaFullClassName
contains the brackets at the end of the returned string, for instance, if JavaAppObject is an array of components, the property will return java.awt.Component[]
. The number of brackets correspond to the array dimensions. For instance, if JavaAppObject is an array with three dimensions, the property will contain three brackets at the end: java.awt.Component[][][]
.
If the object is an array of simple types such as integer, string or boolean, the JavaFullClassName
will return the type name and brackets, for instance, int[][]
.
Declaration
TestObj.JavaFullClassName
Read-Only Property | String |
TestObj | A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section |
Applies To
All Java application objects.
View Mode
This property is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.
Property Value
The string holding the full class name (including the package name) of a desired object.
Remarks
To get the short class name (without the package name), use the JavaClassName
property.
The JavaFullClassName
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 given window
object’s property list.