Interface to define methods that control what panel is displayed in a wizard.
| 22 | * wizard. |
| 23 | */ |
| 24 | public interface PanelManager { |
| 25 | /** |
| 26 | * Return true if the "finish" step can be completed. |
| 27 | * @return boolean true if ok to finish |
| 28 | */ |
| 29 | public boolean canFinish(); |
| 30 | |
| 31 | /** |
| 32 | * Return true if there is a "next" panel. |
| 33 | * @return boolean true means there is a next panel to display |
| 34 | */ |
| 35 | public boolean hasNextPanel(); |
| 36 | |
| 37 | /** |
| 38 | * Return true if there is a "previous" panel. |
| 39 | * @return boolean true means there is a previous panel to display |
| 40 | */ |
| 41 | public boolean hasPreviousPanel(); |
| 42 | |
| 43 | /** |
| 44 | * Get the next panel in the process. |
| 45 | * @return WizardPanel the next panel |
| 46 | * @throws IllegalPanelStateException if an IOException or other unexpected error occurs |
| 47 | */ |
| 48 | public WizardPanel getNextPanel() throws IllegalPanelStateException; |
| 49 | |
| 50 | /** |
| 51 | * Get the first panel in the process. |
| 52 | * @return WizardPanel the first panel |
| 53 | * @throws IllegalPanelStateException if an IOException or other unexpected error occurs |
| 54 | */ |
| 55 | public WizardPanel getInitialPanel() throws IllegalPanelStateException; |
| 56 | |
| 57 | /** |
| 58 | * Get the previous panel in the process. |
| 59 | * @return WizardPanel the previous panel |
| 60 | * @throws IllegalPanelStateException if an IOException or other unexpected error occurs |
| 61 | */ |
| 62 | public WizardPanel getPreviousPanel() throws IllegalPanelStateException; |
| 63 | |
| 64 | /** |
| 65 | * Get the status message for the current panel. |
| 66 | * @return String message to display; |
| 67 | * may be null if there is no message that should be displayed |
| 68 | */ |
| 69 | public String getStatusMessage(); |
| 70 | |
| 71 | /** |
| 72 | * Method called when the user wants to finish the process. |
| 73 | * @throws IllegalPanelStateException if an IOException or other unexpected error occurs |
| 74 | */ |
| 75 | public void finish() throws IllegalPanelStateException; |
| 76 | |
| 77 | /** |
| 78 | * Method called when the user wants to cancel the process. |
| 79 | */ |
| 80 | public void cancel(); |
| 81 |
no outgoing calls
no test coverage detected