Modifying Code Generation for a Property

You can have properties of components on your form initialized in more flexible way than just setting static values. The IDE enables you to initialize property values from:

To modify the initialization code generated for a component's property:

  1. In the Component Inspector, select the Properties tab.
  2. Select the property for which you would like to modify the initialization code.
  3. Click the ellipsis (...) button to bring up the Property Editor dialog box.
  4. Select Form Connection from the Select Mode combo box.
  5. In the Property Editor, select the type of initialization code you would like to add (Value, Bean, Property, Method Call, or User Code).

    If you select Value or User Code, add a static value or your custom initialization code in the field provided.

    If you select Bean, Property, or Method Call, you can select from a list of valid options.

    These options (Value, Bean, and so on) are the same options used in Step 3 of the Connection Wizard. The options are described in more detail on the corresponding help page for the Connection Wizard, Entering Parameters and Property Values.

Tip You can also place custom code before or after a property's initializer. Follow steps 1 and 2 above, and then click the Advanced button to bring up the Advanced Initialization Code dialog box. Type your custom pre-initialization code, post-initialization code, or both in the fields provided.
See also
Modifying Code Generation for a Component
Modifying Code Generation for a Form

Legal Notices