BrightSide Workbench Full Report + Source Code
WizardPanelComposer.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2012 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.zkoss.wizard;
20 
21 import org.zkoss.zk.ui.util.GenericForwardComposer;
22 
27 public abstract class WizardPanelComposer extends GenericForwardComposer {
28 
29  public Object getObjectValue() {
30  return ((WizardPanel) self).getObjectValue();
31  }
32 
33  public void setObjectValue(Object objectValue) {
34  ((WizardPanel) self).setObjectValue(objectValue);
35  }
36 
37  public boolean doEnter() {
38  return true;
39  }
40 
41  public boolean doLeave(boolean forwards) {
42  return !forwards;
43  }
44 
45  public boolean doFinish() {
46  return false;
47  }
48 
49  public boolean doCancel() {
50  return true;
51  }
52 
53  public void setShouldSkip(boolean shouldSkip) {
54  ((WizardPanel) self).setShouldSkip(shouldSkip);
55  }
56  public void setFinalSplash(boolean finalSplash) {
57  ((WizardPanel) self).setFinalSplash(finalSplash);
58  }
59 
60  public void setAllowPrior(boolean allowPrior) {
61  ((WizardPanel) self).setAllowPrior(allowPrior);
62  }
63 
64  public void setAllowNext(boolean allowNext) {
65  ((WizardPanel) self).setAllowNext(allowNext);
66  }
67 
68  public void setAllowFinish(boolean allowFinish) {
69  ((WizardPanel) self).setAllowFinish(allowFinish);
70  }
71 
72  public void setAllowCancel(boolean allowCancel) {
73  ((WizardPanel) self).setAllowCancel(allowCancel);
74  }
75 
76  public boolean isShouldSkip() {
77  return ((WizardPanel) self).isShouldSkip();
78  }
79 
80  public boolean isFinalSplash() {
81  return ((WizardPanel) self).isFinalSplash();
82  }
83 
84  public boolean isAllowPrior() {
85  return ((WizardPanel) self).isAllowPrior();
86  }
87 
88  public boolean isAllowNext() {
89  return ((WizardPanel) self).isAllowNext();
90  }
91 
92  public boolean isAllowFinish() {
93  return ((WizardPanel) self).isAllowFinish();
94  }
95 
96  public boolean isAllowCancel() {
97  return ((WizardPanel) self).isAllowCancel();
98  }
99 
100 }