public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { IWizardStepDescriptor currentWizardStep = getCurrentWizardStep(context); if (currentWizardStep.getOnLeaveAction() == null || actionHandler.execute(currentWizardStep.getOnLeaveAction(), context)) { IWizardStepDescriptor nextWizardStep = currentWizardStep .getNextStepDescriptor(context); show(dialog, cardPanel, alreadyDisplayedSteps, nextWizardStep, backButton, nextButton, finishButton, modelConnector, actionHandler, context); if (nextWizardStep.getOnEnterAction() != null) { actionHandler.execute(nextWizardStep.getOnEnterAction(), context); } } } });
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { IWizardStepDescriptor currentWizardStep = getCurrentWizardStep(context); if (currentWizardStep.getOnLeaveAction() == null || actionHandler.execute(currentWizardStep.getOnLeaveAction(), context)) { IWizardStepDescriptor nextWizardStep = currentWizardStep .getNextStepDescriptor(context); show(dialog, cardPanel, alreadyDisplayedSteps, nextWizardStep, backButton, nextButton, finishButton, modelConnector, actionHandler, context); if (nextWizardStep.getOnEnterAction() != null) { actionHandler.execute(nextWizardStep.getOnEnterAction(), context); } } } });
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { IWizardStepDescriptor currentWizardStep = getCurrentWizardStep(context); if (currentWizardStep.getOnLeaveAction() == null || actionHandler.execute(currentWizardStep.getOnLeaveAction(), context)) { IWizardStepDescriptor nextWizardStep = currentWizardStep .getNextStepDescriptor(context); show(dialog, cardPanel, alreadyDisplayedSteps, nextWizardStep, backButton, nextButton, finishButton, modelConnector, actionHandler, context); if (nextWizardStep.getOnEnterAction() != null) { actionHandler.execute(nextWizardStep.getOnEnterAction(), context); } } } });
if (wizardStep.getNextStepDescriptor(context) != null) { nextButton.setEnabled(true); } else {
private G createNextAction(IWizardStepDescriptor wizardStep, IActionHandler actionHandler, IView<E> view, ITranslationProvider translationProvider, Locale locale, IValueConnector modelConnector, Map<String, Object> context) { NextAction nextAction = new NextAction(wizardStep, modelConnector); nextAction .setIconImageURL(getIconFactory(context).getForwardIconImageURL()); G nextGAction = getActionFactory(context).createAction(nextAction, actionHandler, view, locale); if (wizardStep.getNextStepDescriptor(context) != null) { getActionFactory(context).setActionEnabled(nextGAction, true); } else { getActionFactory(context).setActionEnabled(nextGAction, false); } if (wizardStep.getNextLabelKey() != null) { getActionFactory(context).setActionName( nextGAction, translationProvider.getTranslation(wizardStep.getNextLabelKey(), locale)); } else { getActionFactory(context).setActionName( nextGAction, translationProvider.getTranslation( IWizardStepDescriptor.DEFAULT_NEXT_KEY, locale)); } return nextGAction; }
if (wizardStep.getNextStepDescriptor(context) != null) { nextButton.setEnabled(true); } else {
if (wizardStep.getNextStepDescriptor(context) != null) { nextButton.setEnabled(true); } else {