General Tab (Class Builder)

   

The General tab allows you to make changes to general class attributes.

With the General tab of the Class Builder you can:

Options

Class Name

A read-only text box that displays the name of the class that is currently being used in the Class Builder. You can change the class being used by clicking the Select Class button. This will display the Select Class dialog box where you can choose a class from your project.

Select Class

Displays the Select Class dialog box to select a class from your project to work with in the Class Builder.

Add Class

Displays the Add Class dialog box for adding a new class to your project.

Access

A list that defines the access modifier for the class. Non-nested classes can be declared either as public or default (package). Nested classes can be declared as default, public, protected, or private.

Abstract

When selected, applies the abstract modifier to the currently selected class. This option is disabled if the final modifier is already applied to the class.

Final

When selected, applies the final modifier to the currently selected class. This option is disabled if the abstract modifier is already applied to the class.

Static

When selected, applies the static modifier to the currently selected class. This option is disabled if the class is not a nested class.

Include ClassInfo

When selected, the Class Builder adds a nested ClassInfo class to the currently selected class. ClassInfo classes are used if your class is going to be exposed as a component. This option is disabled if the currently selected class is a nested class.

Javadoc Comment

A text box that allows you to view and modify the Javadoc comments for the currently selected class. Only the first sentence of the Javadoc comment is displayed in this text box.

COM Class

When selected, a comment tag is added above the current class declaration to register the class as a COM class. Selecting this option allows your class to be exposed as a COM object and be accessible to other languages that support COM. If this option is not selected, any COM registration code added above the class declaration is removed. This option is selected if the class is selected in the COM Classes tab of the Project Properties dialog box or MTS support is specified. This option is disabled if the currently selected class is a nested class.

MTS Support

When the Enabled option is selected, Microsoft Transaction Server support is added to the current class declaration. Because transaction support is only valid for COM classes, when this option is selected, the COM Class option will automatically be selected. The Class Wizard adds the @com.register and @com.transaction comment tags, as well as the com.ms.mtx.IObjectControl interface to the class's implemented interfaces list. The list provided next to the Enabled option allows you to define the parameter of the @com.transation comment tag. The parameter allows you to define the behavior of the transaction object.