Documentation Archive Developer
Search
Table of Contents Previous Section

Creating Variables and Methods in WebObjects Builder

At the bottom of the object browser, there is a pull-down menu called Edit sourcefile. It has three items:

When you choose Add Variable/Method, the following panel opens:

In this panel, you specify:

When you click Add, the key's name appears in the object browser (below application and session). To see what was added to your source code, choose View Source File from the pop-up menu in the object browser. You'll see something like the following:

When you choose Add Action, the following panel appears:

When you click Add, the following code is added to your source file:

WebObjects Builder provides these ways to add variables and methods for your convenience. Of course, you can add variables and methods directly to your component's code by editing them in Project Builder.

Note: To delete a key or action, you must delete it from the source code in Project Builder. Also, the Add Variable/Method and Add Action commands apply only to a component's code file. To add variables and methods to the application and session code files, or to any other code files, you must edit them directly in Project Builder.

Table of Contents Next Section