Previous TopicNext Topic


How to create a Java class and add it to the Java project

To create a Java class for a ROM element event handler, perform the following steps:

  1. Select your Java project and choose File->New->Other->Java->Class, as shown in the following illustration.
  2. Java Class appears, as shown in the following illustration.

  3. Navigate to the folder where you want the Java source file to reside by choosing Browse next to Source Folder.
  4. If your new Java class is a part of a package, enter the fully-qualified package name in Package.
  5. Enter a name for your class in Name.
  6. Choose Public in Modifiers.
  7. In Superclass, accept the default superclass, java.lang.Object, or browse for the class you want your class to extend.
  8. Choose Add next to Interfaces to specify an interface that the new Java class implements.
  9. In Which method stubs would you like to create?, choose Inherited abstract methods
  10. In Do you want to add comments as configured in the properties of the current project?, choose Generate comments.
  11. Choose Finish.
  12. A Java editor view appears containing your new Java class, similar to the following illustration.

    The comments that begin // TODO are those that are generated when you choose Generate comments.

(c) Copyright Actuate Corporation 2006

Previous TopicNext Topic