What is the best strategy for creating a large app...
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dimitris_Dinos
Posted On:   Thursday, August 24, 2000 06:48 AM

What is the best strategy for creating a large application with many screens (Frames) using the Visual Composition Editor? Is there a better way than putting multiple screens on one VCE surface (one generated class)?

Re: What is the best strategy for creating a large app...

Posted By:   Dimitris_Dinos  
Posted On:   Wednesday, March 21, 2001 11:59 PM

The approach we finally used and seems to work fine is the following :
- we created each frame individually, sometimes adding new constructors if needed
- we created a "main" frame and in the free form surface of this we placed factory objects
- we changed the type of the factory objects to these of the frames we wanted and handled the instanciation with event to method(constructor) connections from the "main" frame

One way or another some handwritten code is unavoidable.

Re: What is the best strategy for creating a large...

Posted By:   Shahram_Khorsand  
Posted On:   Friday, March 16, 2001 05:43 AM

Hi!


I would recommend you to use one VCE surface for every sceen.

This is because VAJ sometime loses the meta information coupled to the generated classes and the VCE surface and presentation.

This way if something happens you'll lose just one screen and not all of them.


Furthermore, VAJ uses alot of extra memory when putting to much components inside one VCE.



Hope it helps

Shahram Khorsand


FAQ Manager's Comment:

The VCE metadata is only "lost" if you export/import the class in .java or .class file format without the proper options enabled. It is well-documented that you must export/import in repository format or enable the "Generate Metadata method" option if you need to retain the VCE data. That said, the recommendation to have relatively small-grained VCE screens is a good one.

Re: What is the best strategy for creating a large...

Posted By:   Michael_Murphy  
Posted On:   Tuesday, February 20, 2001 02:29 PM

You can use the "sticky" property of the VCE to generate multiple copies of the currently selected widget. If you want these screens to be managed as one window, you'll want to nest them in the Swing hierarchy and set the layout manager properties. If you actually want multiple windows (an MDI approach), you're going to have to use a top level container to manage them and set visibility properties under control of your application classes.



Michael Murphy
About | Sitemap | Contact