KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > wizard > WizardPage


1 package com.tonbeller.wcf.wizard;
2
3 import com.tonbeller.wcf.component.Renderable;
4 import com.tonbeller.wcf.component.Visible;
5
6 /**
7  * The wizard will register a PageListener with all its pages. If a page is shown, its render() method
8  * is called. When the processing of a page has finished, the page must call one of the PageListener
9  * methods to inform the Wizard.
10  *
11  * @author av
12  */

13 public interface WizardPage extends Renderable, Visible {
14   public static class WizardPagePosition {
15     private String JavaDoc name;
16     private WizardPagePosition(String JavaDoc name) {
17       this.name = name;
18     }
19     public static final WizardPagePosition SINGLE_PAGE = new WizardPagePosition("single");
20     public static final WizardPagePosition FIRST_PAGE = new WizardPagePosition("first");
21     public static final WizardPagePosition LAST_PAGE = new WizardPagePosition("last");
22     public static final WizardPagePosition MIDDLE_PAGE = new WizardPagePosition("middle");
23   }
24   
25   void addPageListener(PageListener l);
26   void removePageListener(PageListener l);
27   void pageAdded(WizardPagePosition pagePos);
28   void pageSkipped();
29 }
30
Popular Tags