• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My desgn model and Form concerns - Help please

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may do the following.


reply
    Bookmark Topic Watch Topic
  • New Topic