API Overview: Class Categories


The JavaStar public library provides:

Component and Control Classes

The JS class, JSComponent interface, and JSMenuComponent interface comprise the component and control classes. The JS class contains component and script control classes--you'll probably use this class often if you customize scripts. The JSComponent and JSMenuComponent interfaces are implemented privately. Many JS methods return objects of these types.

Non-Component Classes

The JSNonComponent interface, JSNonComponentLocator interface, and JSNCLData class are described in Non-Component Classes. You use these when you are testing an application that uses components that do not extend java.awt.Component.

Timer Classes

The Timer classes (JSTimer and JSTimerCallback) allow you to create your own timers and register callbacks.

Script Control Class

The Script class defines the structure of JavaStar scripts. This information is included so you can better understand the way scripts work.

Error Classes

These classes define JavaStar-specific errors: BadRegularExpressionError, JavaStarInternalError, NoAppResponseError.

Exception Classes

These are the JavaStar-specific exceptions that the API can throw. Even if you're not using the API to customize scripts, this chapter can help you understand the exceptions thrown by scripts you generated using the record feature.

Waiting--Custom Synchronization

The Waiting interface is where you define custom synchronization conditions. You call objects of this class using JS.waitFor().




Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.