KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > rcp > wizard > IDynamicPathWizardPage


1 /*
2  * Created on Mar 8, 2005
3  */

4 package com.nightlabs.rcp.wizard;
5
6 import org.eclipse.jface.wizard.IWizardPage;
7
8 /**
9  * @author Marco Schulze - marco at nightlabs dot de
10  */

11 public interface IDynamicPathWizardPage extends IWizardPage
12 {
13     /**
14      * When the {@link DynamicPathWizard} evaluates whether it can finish
15      * (in the method {@link DynamicPathWizard#canFinish()}),
16      * it asks all pages of the current path, whether they are complete by calling
17      * {@link IWizardPage#isPageComplete()}. To find out the current path,
18      * it starts at the entry page and moves forward by {@link IWizardPage#getNextPage()}.
19      * In case {@link IWizardPage#getNextPage()} returns <tt>null</tt>, the wizard cannot
20      * know whether this page is really the last or whether the next page is just not yet
21      * known. To make clear that a new page must follow, overwrite this method to return
22      * <tt>false</tt>.
23      *
24      * @return Returns whether or not this wizard page can be the last one in a chain.
25      */

26     boolean canBeLastPage();
27
28     /**
29      * This method will be called, when this page becomes the current one (after it has
30      * been made visible).
31      */

32     void onShow();
33
34     /**
35      * This method will be called, after this page was the current one, when setVisible
36      * is called with false (after the page was hidden, before the other page becomes
37      * visible).
38      */

39     void onHide();
40 }
41
Popular Tags