Interface to define methods for panels to be shown in the wizard dialog.
| 26 | * Interface to define methods for panels to be shown in the wizard dialog. |
| 27 | */ |
| 28 | public interface WizardPanel { |
| 29 | /** |
| 30 | * Get the title for this panel. |
| 31 | * @return String title |
| 32 | */ |
| 33 | public String getTitle(); |
| 34 | /** |
| 35 | * Get the panel object |
| 36 | * @return JPanel panel |
| 37 | */ |
| 38 | public JPanel getPanel(); |
| 39 | /** |
| 40 | * Return true if the user entered valid information for this panel. |
| 41 | * @return boolean whether or not the info on the panel valid |
| 42 | */ |
| 43 | public boolean isValidInformation(); |
| 44 | /** |
| 45 | * Initialize the panel as though this is the first time it is |
| 46 | * being displayed. |
| 47 | */ |
| 48 | public void initialize(); |
| 49 | /** |
| 50 | * Add a listener to this panel. |
| 51 | * @param l listener to add |
| 52 | */ |
| 53 | public void addWizardPanelListener(WizardPanelListener l); |
| 54 | /** |
| 55 | * Remove the listener from this panel. |
| 56 | * @param l listener to remove |
| 57 | */ |
| 58 | public void removeWizardPanelListener(WizardPanelListener l); |
| 59 | /** |
| 60 | * Returns the help content location for this panel. |
| 61 | * |
| 62 | * @return String help location for this panel; return null if default help |
| 63 | * location should be used. |
| 64 | */ |
| 65 | public HelpLocation getHelpLocation(); |
| 66 | |
| 67 | /** |
| 68 | * Returns the component, if any, that should receive focus when this panel is shown. |
| 69 | * @return the component, if any, that should receive focus when this panel is shown; null |
| 70 | * if no preferred focus component exists. |
| 71 | */ |
| 72 | public Component getDefaultFocusComponent(); |
| 73 | } |
no outgoing calls
no test coverage detected