Programmatically move the wizard forward one panel. Simulates the user clicking on the 'next' button. Returns true if not on the last panel. @return true if not on the last panel
()
| 348 | * @return true if not on the last panel |
| 349 | */ |
| 350 | public boolean next() { |
| 351 | if (nextButton.isEnabled()) { |
| 352 | try { |
| 353 | setCurrentPanel(panelMgr.getNextPanel()); |
| 354 | } |
| 355 | catch (IllegalPanelStateException e) { |
| 356 | if (!handleIllegalStateException(e, false)) { |
| 357 | return false; |
| 358 | } |
| 359 | } |
| 360 | String msg = panelMgr.getStatusMessage(); |
| 361 | if (msg != null) { |
| 362 | setStatusMessage(msg); |
| 363 | } |
| 364 | return true; |
| 365 | } |
| 366 | return false; |
| 367 | } |
| 368 | |
| 369 | /** |
| 370 | * Places focus on the 'next' button. |