Previous  Next

Bean Wizard

Adding methods to classes

Use the Methods panel to add methods to any class or interface in the project.

Select the class or interface to which you want to add a method in the Interface/Class drop-down list. For each method, specify its visibility (public, protected, private, or default) and return type. You can also add any parameters the method requires, identifying them by name and type. The drop-down lists for return type and parameter type define some standard types, or you can enter another type. Add all the necessary parameters to the method, and then add the method to the class.

The "Interface/Class" drop-down list contains all classes and interfaces currently defined in the project.

Bean Wizard Methods Panel

You can remove methods that are added in the current session by returning to the Methods panel, select the method you want to remove, and pressing the Remove button. However if you are modifying an existing project, you cannot use the wizard to remove methods that were added in an earlier session.You must do this manually.

Select another tab to define other aspects of the component. Press the Next>> button to go to the code generation panel.


Previous  Next

Copyright © Taligent, Inc. 1996 - 1997.
Copyright
© IBM Corporation 1996 - 1997.
All Rights Reserved.