• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My desgn model and Form concerns - Help please

 
Juwonlo Ibigbami
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
Please I will need a help on the kind of design I chose in order to implement a job.
I am developing a large application for mobile phones and i am using the LWUIT APIs.

From decoupling perspective, I have decided to break the implementation of every of my operations into a classes, implemented in a Form class (LWUIT Form); i.e. I use a form for specific operation, and from a form calls on another form, and frm there calls another, and so on.........
I always call another form from a form, base on the operation to perform, for example;

1. I always have my class declared like this.......



2. I always transfer controls or call another class/Form like this......


My concerns here is this, since there is no way to close/end a Form,
Will these Forms that are loaded after the other remain in the memory?
Will each of the call/invocation of Forms (or their constructors), be called in a stack (just like the normal method invocation)?

I am writing an application, and half way into the development i already have 30 classes, i hope if a user has to perform operation for a long time, the application will not crash?
What could possible be the best practice in this case?

Thanks - Juwonlo
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may do the following to ensure that, at any point in time you have only one form loaded.

* Collect data from the current form
* Store the contents into a bean
* Close the current form
* Show the new form (use the contents in the bean to fill the form automatically, if required)
* Remove the bean
 
Juwonlo Ibigbami
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Madhan,
Thanks for the response......
you said
Close the current form


How do i close a LWUIT form?

Thanks - Juwonlo
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may do the following.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic