1
2
3
4
5
6
7
8
9
10
11
12 package com.eviware.x.form;
13
14 /***
15 *
16 * @author lars
17 */
18 public abstract class WizardPage
19 {
20 private String name;
21 private String description;
22
23 public WizardPage( String name, String description )
24 {
25 this.name = name;
26 this.description = description;
27 }
28
29 public String getName()
30 {
31 return name;
32 }
33
34 public String getDescription()
35 {
36 return description;
37 }
38
39 public boolean canGoBack()
40 {
41 return false;
42 }
43
44 /***
45 * Initialize the page. Note that this can be called multiple times if going
46 * Back and Next.
47 *
48 * @return true if the page was initialized ok, false to end the wizard.
49 * @throws Exception
50 */
51 public abstract boolean init() throws Exception;
52
53 /***
54 *
55 * @return true if the page finished ok, false to end the wizard.
56 * @throws Exception
57 */
58 public abstract boolean run() throws Exception;
59 }