/** * Move the wizard forward one step/screen. */ private void wizardStepForward() { drawWizardScreen(currentState + 1); }
/** * Move the wizard backward one step/screen. */ private void wizardStepBackward() { drawWizardScreen(currentState - 1); }
/** * Move the wizard forward one step/screen. */ private void wizardStepForward() { drawWizardScreen(currentState + 1); }
/** * Move the wizard backward one step/screen. */ private void wizardStepBackward() { drawWizardScreen(currentState - 1); }
/** * When a fatal error occurs, go straight to last screen to display the error message * and make the error code available as a variable (<code>${errorCode}</code>) to be used * in the error message displayed to the user. * <p> * If there is an Uploader property <code>errorCodeMessage.<code></code> corresponding * to this error code, the value of this property is made available as a variable * (<code>${errorMessage}</code>). If there is no such property available the * <code>${errorMessage}</code> variable will be an empty string. * * * @param errorCode * the error code, which may correspond with an error message in uploader.properties. */ private void failWithFatalError(String errorCode) { uploaderProperties.setProperty("errorCode", errorCode); String errorCodeMessagePropertyName = "errorCodeMessage." + errorCode; String errorCodeMessage = uploaderProperties.getStringProperty(errorCodeMessagePropertyName, ""); uploaderProperties.setProperty("errorMessage", errorCodeMessage); fatalErrorOccurred = true; drawWizardScreen(WIZARD_SCREEN_5); }
/** * When a fatal error occurs, go straight to last screen to display the error message * and make the error code available as a variable (<code>${errorCode}</code>) to be used * in the error message displayed to the user. * <p> * If there is an Uploader property <code>errorCodeMessage.<code></code> corresponding * to this error code, the value of this property is made available as a variable * (<code>${errorMessage}</code>). If there is no such property available the * <code>${errorMessage}</code> variable will be an empty string. * * * @param errorCode * the error code, which may correspond with an error message in uploader.properties. */ private void failWithFatalError(String errorCode) { uploaderProperties.setProperty("errorCode", errorCode); String errorCodeMessagePropertyName = "errorCodeMessage." + errorCode; String errorCodeMessage = uploaderProperties.getStringProperty(errorCodeMessagePropertyName, ""); uploaderProperties.setProperty("errorMessage", errorCodeMessage); fatalErrorOccurred = true; drawWizardScreen(WIZARD_SCREEN_5); }
drawWizardScreen(WIZARD_SCREEN_5); progressTransferDetailsLabel.setText(""); uploadCancelled = true; drawWizardScreen(WIZARD_SCREEN_3); SwingUtilities.invokeLater(new Runnable() { public void run() {
drawWizardScreen(WIZARD_SCREEN_5); progressTransferDetailsLabel.setText(""); uploadCancelled = true; drawWizardScreen(WIZARD_SCREEN_3); SwingUtilities.invokeLater(new Runnable() { public void run() {