java-melwuitlwuit-resource-editor

inheriting a GUI class in LWUIT 1.5


I'm trying to inherit a class that I made in the GUI Resource Editor of Lwuit to extend some functionality. I want to do something like:

public class MyCustomGUIForm extend CustomGUIForm{...}

Where CustomGUIForm its a Form that I create in the Resource Editor. Any idea??


Solution

  • I am going to explain you what I do for extend some functionallity in the Formsthat I create with the Resource Editor. When you build a NetBeansProject with the Resource Editor, you get a StateMachine class wich allows you to modify/add some aspects of your apps navigation. In the StateMachine class you can find a lot of methods related to the elements that you create in the Resource Editor.

    For example:

    You create a Form in the Resource Editor, called CustomGUIForm. After you save the .res, you should find some methods in the StateMachine class called beforeCustomGUIForm postCustomGUIForm and exitGUIForm, with this methods you can use the Form and add some functionality. You can observe that in StateMachine there are other methods for Commands that you build in the Resource Editor, ActionListeners, etc etc. Take a look to the overriden methods for the StateMachine, they could be usefull for you.

    Let me know if you have more questions