|
|
|
Re: pass data between wizard page [message #553389 is a reply to message #553207] |
Tue, 17 August 2010 11:39 |
Christian Eugster Messages: 203 Registered: July 2009 Location: St. Gallen Switzerland |
Senior Member |
|
|
From the wizard page that uses data from another wizard page, you obtain the wizard. From the wizard you get the desired page by calling the wizards getPage() method. As parameter you put the desireds wizard page name (a string that you passed while adding that page to the wizard. Cast the result to the desired page and check if the result is not null. Then you can get any data you want by calling any getter method of that page:
IWizard wizard = myPage.getWizard();
MyOtherPage otherPage = (MyOtherPage) wizard.getPage("other.page");
if (otherPage != null)
{
otherPage.getThis();
otherPage.getThat();
...
}
[Updated on: Tue, 17 August 2010 11:54] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03655 seconds