- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 37 of file Wizard.java.
◆ $wbcancel()
void onClick org.turro.zkoss.wizard.Wizard.$wbcancel |
( |
| ) |
|
Definition at line 77 of file Wizard.java.
78 WizardPanel wp = (WizardPanel) wizardbox.getSelectedPanel();
80 Events.postEvent(
new Event(Events.ON_CLOSE,
self));
◆ $wbfinish()
void onClick org.turro.zkoss.wizard.Wizard.$wbfinish |
( |
| ) |
|
Definition at line 67 of file Wizard.java.
68 WizardPanel wp = (WizardPanel) wizardbox.getSelectedPanel();
69 if(wp.doLeave(
true)) {
71 Events.postEvent(
new Event(Events.ON_CLOSE,
self));
◆ $wbnext()
void onClick org.turro.zkoss.wizard.Wizard.$wbnext |
( |
| ) |
|
◆ $wbprior()
void onClick org.turro.zkoss.wizard.Wizard.$wbprior |
( |
| ) |
|
◆ doFinally()
void org.turro.zkoss.wizard.Wizard.doFinally |
( |
| ) |
throws Exception |
Definition at line 140 of file Wizard.java.
142 Caption caption =
new Caption(
null,
"/_zul/images/wizard.png");
143 self.appendChild(caption);
144 wizardbox.setSclass(
"wizard");
145 wizardbox.setHflex(
"true");
146 wizardbox.setVflex(
"true");
147 wizardbox.getTabs().setSclass(
"wtabs");
148 for(Iterator it = wizardbox.getTabs().getChildren().iterator(); it.hasNext();) {
149 Tab tab = (Tab) it.next();
150 tab.setDisabled(
true);
151 tab.setSclass(
"wizardtab");
153 new ComponentIterator<WizardPanel>(
self) {
155 protected void doComponent(WizardPanel component) {
159 list.getFirst().setAllowPrior(
false);
160 list.getLast().setAllowNext(
false);
162 wbprior.setLabel(I_.get(
"<< Previous"));
163 wbnext.setLabel(I_.get(
"Next >>"));
164 wbfinish.setLabel(I_.get(
"Finish"));
165 wbcancel.setLabel(I_.get(
"Cancel"));
166 for(WizardPanel wp : list) {
167 if(!wp.shouldSkip && !wp.checkSkipFirst()) {
169 wizardbox.setSelectedPanel(wp);
◆ nextPanel()
void org.turro.zkoss.wizard.Wizard.nextPanel |
( |
| ) |
|
Definition at line 104 of file Wizard.java.
105 int current = wizardbox.getSelectedIndex();
106 if(current > list.size() - 2)
return;
107 WizardPanel wpcurrent = list.get(current);
108 if(wpcurrent.doLeave(
true)) {
110 for(
int i = current; i < list.size(); i++) {
111 WizardPanel wp = list.get(i);
112 if(!wp.isShouldSkip() && !wp.checkSkipFirst()) {
114 wizardbox.setSelectedIndex(i);
◆ onCancel()
void org.turro.zkoss.wizard.Wizard.onCancel |
( |
| ) |
|
Definition at line 52 of file Wizard.java.
53 WizardPanel wp = (WizardPanel) wizardbox.getSelectedPanel();
54 if(wp.isAllowCancel()) {
◆ onOK()
void org.turro.zkoss.wizard.Wizard.onOK |
( |
| ) |
|
Definition at line 43 of file Wizard.java.
44 WizardPanel wp = (WizardPanel) wizardbox.getSelectedPanel();
45 if(wp.isAllowNext()) {
47 }
else if(wp.isAllowFinish()) {
◆ priorPanel()
void org.turro.zkoss.wizard.Wizard.priorPanel |
( |
| ) |
|
|
protected |
Definition at line 85 of file Wizard.java.
86 int current = wizardbox.getSelectedIndex();
87 if(current < 1)
return;
88 WizardPanel wpcurrent = list.get(current);
89 if(wpcurrent.doLeave(
false)) {
91 for(
int i = current; i >= 0; i--) {
92 WizardPanel wp = list.get(i);
93 if(!wp.isShouldSkip()) {
95 wizardbox.setSelectedIndex(i);
◆ setCancelStatus()
void org.turro.zkoss.wizard.Wizard.setCancelStatus |
( |
boolean |
enabled | ) |
|
Definition at line 135 of file Wizard.java.
136 wbcancel.setDisabled(!enabled);
◆ setFinishStatus()
void org.turro.zkoss.wizard.Wizard.setFinishStatus |
( |
boolean |
enabled | ) |
|
Definition at line 131 of file Wizard.java.
132 wbfinish.setDisabled(!enabled);
◆ setNextStatus()
void org.turro.zkoss.wizard.Wizard.setNextStatus |
( |
boolean |
enabled | ) |
|
Definition at line 127 of file Wizard.java.
128 wbnext.setDisabled(!enabled);
◆ setPriorStatus()
void org.turro.zkoss.wizard.Wizard.setPriorStatus |
( |
boolean |
enabled | ) |
|
Definition at line 123 of file Wizard.java.
124 wbprior.setDisabled(!enabled);
◆ updateButtons()
void org.turro.zkoss.wizard.Wizard.updateButtons |
( |
| ) |
|
|
protected |
Definition at line 195 of file Wizard.java.
196 WizardPanel wp = (WizardPanel) wizardbox.getSelectedPanel();
void setNextStatus(boolean enabled)
void setPriorStatus(boolean enabled)
void setCancelStatus(boolean enabled)
void setFinishStatus(boolean enabled)
◆ updateWizard()
void org.turro.zkoss.wizard.Wizard.updateWizard |
( |
| ) |
|
|
protected |
Definition at line 177 of file Wizard.java.
178 WizardPanel wp = (WizardPanel) wizardbox.getSelectedPanel();
179 for(Iterator it = wizardbox.getTabs().getChildren().iterator(); it.hasNext();) {
180 Tab tab = (Tab) it.next();
181 if(tab.getIndex() < wp.getIndex()) {
182 tab.setSclass(
"wpdone");
183 }
else if(tab.getIndex() == wp.getIndex()) {
184 tab.setSclass(
"wpcurrent");
186 tab.setSclass(
"wppending");
189 if(wp.isFinalSplash()) {
190 wbfinish.setLabel(I_.get(
"Close"));
The documentation for this class was generated from the following file: