How to update controls on a wizard page?

I have a wizard consisting of 2 wizard pages.

@Override
public void addPages() {
    super.addPages();
    addPage(firstPage);
    addPage(secondPage);    
}

I see that the createControl method of both the pages gets called immediately when the wizard is shown.

The first wizard page has a text field. I want to display the same text value on the second page entered by the user on the first page when he navigates from first page to the send page.

How can I achieve this? How can I update the controls?

Upvotes: 0

Views: 185

Answers (1)

greg-449
greg-449

Reputation: 111216

This is basically up to you to arrange.

For example, you could pass a reference to firstPage to the secondPage when it is constructed. The setVisible method of the second page can then call some method on the first page to get the value you need.

Upvotes: 2

Related Questions