Solved

Eclipse:  New File Wizard data communication

Posted on 2004-04-05
7
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 125 total points
ID: 10763347
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
ID: 10763483
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
ID: 10786351
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
ID: 10958176
I would recommend for mmuruganandam && orangehead911.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

695 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