Modifying a User-Defined Class

After you've made a class, any modifications to the class must be done directly in the class_name.java file. It is also in the class_name.java file that you define any user-defined methods that you included as the event handlers to specific events.

  1. Open the project containing the class files.

  2. In the Project card, double-click on the class_name.java icon.

    This displays the file in the Source panel.

  3. Modify the class.

    Make your edits outside code blocks that include:

    Begin Non-Editable Code Block
    
    End Non-Editable Code Block
    

    Edits made within these code blocks are overwritten the next time you save the interface through the visual builder.

  4. If, before you created the class, you included user-defined methods as event handlers, you need to define them here.

    For information on defining these methods, begin with step 5 in Handling Events With User-Defined Methods.

Guide to the Cosmo Code Development Environment
12-96*529