MCPcopy Create free account
hub / github.com/PCGen/pcgen / runNextPanel

Method runNextPanel

code/src/java/pcgen/gui2/converter/ConvertPanel.java:182–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 }
181
182 private void runNextPanel()
183 {
184 ConvertSubPanel nextpanel;
185 do
186 {
187 boolean allowPrev = false;
188 if (currentPanel >= 0 && currentPanel < queue.size())
189 {
190 allowPrev = queue.get(currentPanel).returnAllowed();
191 }
192 currentPanel++;
193 if (currentPanel < queue.size())
194 {
195 nextpanel = queue.get(currentPanel);
196 prepare(nextpanel, allowPrev);
197 basePanel.removeAll();
198 nextpanel.setupDisplay(basePanel, properties);
199 basePanel.repaint();
200 }
201 else
202 {
203 nextpanel = null;
204 showFinishButton();
205 }
206 }
207 while (nextpanel != null && nextpanel.autoAdvance(properties));
208 }
209
210 /**
211 * The Class {@code PreviousButtonListener} ...

Callers 2

ConvertPanelMethod · 0.95
proceedToNextPanelMethod · 0.95

Calls 8

prepareMethod · 0.95
setupDisplayMethod · 0.95
showFinishButtonMethod · 0.95
autoAdvanceMethod · 0.95
sizeMethod · 0.65
getMethod · 0.65
removeAllMethod · 0.65
returnAllowedMethod · 0.45

Tested by

no test coverage detected