Solved

Eclipse:  New File Wizard data communication

Posted on 2004-04-05
7
357 Views
Last Modified: 2012-08-13
I am wondering what the mechnism used in wizard page communication.  For example, page2 needs some values from page1, we can use DialogSettings to store these values and pass to pages.  However, if from page2, I pressed "Back" button and changed something in page1, then click "next" again to page2.  The new value should be reflected in page2.  It seems to me that a listener is needed to update these values, but the implementation is complicated.

Would you please give me some idea how commonly this is handled?

Thanks a lot
0
Comment
Question by:zjiqi0
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 125 total points
Comment Utility
Once an action is performed, the fireChangeProperty never called again in Eclipse.  You can explicitly call the fireChangeProperty method when it is not called.  That way, you can make sure that your changes are reflected in your next page.


Regards,
Muruga
0
 
LVL 14

Assisted Solution

by:Tommy Braas
Tommy Braas earned 125 total points
Comment Utility
Implement your wizard pages as JavaBeans and have PropertyChange events on all properties. That way a PropertyChangeEvent will be dispatched every time a property changes and you can keep your UI synched.
0
 

Author Comment

by:zjiqi0
Comment Utility
I do intend to add listener to all the properties, but I am not sure the Listener can modify the property on another page, since checkWidget may fail it.

Are you guys talking about to fire the event and have every related page listen to it, and update itself accordingly?  I don't know how to do this. Will you guys give me some examples?

Besides, I don't know how to use java bean for this either.  Exaples or more detailed description is appreciated.

Thanks you very much.

0
 
LVL 9

Expert Comment

by:mmuruganandam
Comment Utility
I would recommend for mmuruganandam && orangehead911.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now