BrightSide Workbench Full Report + Source Code
org.turro.zkoss.wizard.WizardOld Class Reference
Inheritance diagram for org.turro.zkoss.wizard.WizardOld:
Collaboration diagram for org.turro.zkoss.wizard.WizardOld:

Public Member Functions

 WizardOld ()
 
WizardPanelOld addPanel (WizardPanelOld panel)
 
void show (Page page)
 
void nextPanel ()
 
void setPriorStatus (boolean enabled)
 
void setNextStatus (boolean enabled)
 
void setFinishStatus (boolean enabled)
 
void setCancelStatus (boolean enabled)
 

Protected Member Functions

void doPrior ()
 
void doNext ()
 
void doFinish ()
 
void doCancel ()
 
void priorPanel ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 33 of file WizardOld.java.

Constructor & Destructor Documentation

◆ WizardOld()

org.turro.zkoss.wizard.WizardOld.WizardOld ( )

Definition at line 41 of file WizardOld.java.

41  {
42  addComponents();
43  }

Member Function Documentation

◆ addPanel()

WizardPanelOld org.turro.zkoss.wizard.WizardOld.addPanel ( WizardPanelOld  panel)

Definition at line 45 of file WizardOld.java.

45  {
46  if(wpanels == null) {
47  wpanels = new LinkedList<WizardPanelOld>();
48  }
49  wpanels.add(panel);
50  panel.setWizard(this);
51  Tab tab = new Tab(wpanels.size() + " - " + panel.getLabel());
52  tabs.appendChild(tab);
53  Tabpanel tpanel = new Tabpanel();
54  panels.appendChild(tpanel);
55  tpanel.appendChild(panel);
56  return panel;
57  }
Here is the call graph for this function:

◆ doCancel()

void org.turro.zkoss.wizard.WizardOld.doCancel ( )
protected

Definition at line 81 of file WizardOld.java.

81  {
82  detach();
83  }

◆ doFinish()

void org.turro.zkoss.wizard.WizardOld.doFinish ( )
protected

Definition at line 77 of file WizardOld.java.

77  {
78  detach();
79  }

◆ doNext()

void org.turro.zkoss.wizard.WizardOld.doNext ( )
protected

Definition at line 73 of file WizardOld.java.

73  {
74  nextPanel();
75  }
Here is the call graph for this function:

◆ doPrior()

void org.turro.zkoss.wizard.WizardOld.doPrior ( )
protected

Definition at line 69 of file WizardOld.java.

69  {
70  priorPanel();
71  }
Here is the call graph for this function:

◆ nextPanel()

void org.turro.zkoss.wizard.WizardOld.nextPanel ( )

Definition at line 102 of file WizardOld.java.

102  {
103  int current = body.getSelectedIndex();
104  if(current > wpanels.size() - 2) return;
105  if(wpanels.get(current).doLeave()) {
106  current++;
107  for(int i = current; i < wpanels.size(); i++) {
108  WizardPanelOld wp = wpanels.get(i);
109  if(!wp.isShouldSkip()) {
110  if(wp.doEnter()) {
111  body.setSelectedIndex(i);
112  }
113  break;
114  }
115  }
116  }
117  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ priorPanel()

void org.turro.zkoss.wizard.WizardOld.priorPanel ( )
protected

Definition at line 85 of file WizardOld.java.

85  {
86  int current = body.getSelectedIndex();
87  if(current < 1) return;
88  if(wpanels.get(current).doLeave()) {
89  current--;
90  for(int i = current; i > 0; i--) {
91  WizardPanelOld wp = wpanels.get(i);
92  if(!wp.isShouldSkip()) {
93  if(wp.doEnter()) {
94  body.setSelectedIndex(i);
95  }
96  break;
97  }
98  }
99  }
100  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCancelStatus()

void org.turro.zkoss.wizard.WizardOld.setCancelStatus ( boolean  enabled)

Definition at line 131 of file WizardOld.java.

131  {
132  cancel.setDisabled(!enabled);
133  }
Here is the caller graph for this function:

◆ setFinishStatus()

void org.turro.zkoss.wizard.WizardOld.setFinishStatus ( boolean  enabled)

Definition at line 127 of file WizardOld.java.

127  {
128  finish.setDisabled(!enabled);
129  }
Here is the caller graph for this function:

◆ setNextStatus()

void org.turro.zkoss.wizard.WizardOld.setNextStatus ( boolean  enabled)

Definition at line 123 of file WizardOld.java.

123  {
124  next.setDisabled(!enabled);
125  }
Here is the caller graph for this function:

◆ setPriorStatus()

void org.turro.zkoss.wizard.WizardOld.setPriorStatus ( boolean  enabled)

Definition at line 119 of file WizardOld.java.

119  {
120  prior.setDisabled(!enabled);
121  }
Here is the caller graph for this function:

◆ show()

void org.turro.zkoss.wizard.WizardOld.show ( Page  page)

Definition at line 59 of file WizardOld.java.

59  {
60  setPage(page);
61  if(tabs.getChildren().isEmpty()) {
62  return;
63  }
64  body.setSelectedIndex(0);
65  setMode("modal");
66  Modal.doModal(this, null);
67  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: