Search VisualAge for Java Information Go to Information Home Page Go to VisualAge for Java WWW Site

Create Interface

The Add Interface SmartGuide lets you create a new interface or add an existing one from the repository. 

To create a new interface:

  1. In the Project field, provide the name of a project to contain the new interface. This can be a new name, in which case the SmartGuide creates the project before it creates the interface. Alternatively, you can select an existing project. Click Browse to choose from a list of projects in the workspace.
  2. Likewise provide a new or existing package name for the interface in the Package field.
  3. Select the Create a new interface radio button.
  4. Enter a name for the interface.
  5. If the interface extends other interfaces, add them to the extended interfaces list by clicking the Add button and selecting from interfaces in the workspace.   To remove an interface from this list, select it and click Remove.
  6. If you want to open an interface browser on the interface once it has been generated, enable the Browse the interface when finished check box.
  7. Click Next to specify additional options, including import statements and access modifier, or click Finish.

To add an interface from the repository:

  1. In the Project field, provide the name of a project to contain the new interface. This can be a new name, in which case the SmartGuide creates the project before it creates the interface. Alternatively, you can select an existing project. Click Browse to choose from a list of projects in the workspace.
  2. Likewise provide a new or existing package name for the interface in the Package field.
  3. Select the Add interfaces from the repository field.
  4. The Available interfaces list shows the interfaces that are available for the project and package.  Select one by enabling its check box.  Note: Only those interfaces that were created for the selected package can be added back to the package.
  5. The Available editions list shows the editions of the selected interface in the repository.  Select one by enabling its check box. 
  6. If needed, select more than one interface to add to the workspace by repeating the two previous steps.
  7. Click Finish.