public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { dialog.dispose(); } });
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { colorPickerDialog.dispose(); } });
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { setValue(colorPicker.getSelectedColor()); colorPickerDialog.dispose(); } });
/** * {@inheritDoc} */ @Override public void disposeModalDialog(SComponent sourceWidget, Map<String, Object> context) { super.disposeModalDialog(sourceWidget, context); SContainer actionWindow = WingsUtil.getVisibleWindow(sourceWidget); if (actionWindow instanceof SDialog) { ((SDialog) actionWindow).dispose(); } }
/** * If the ancestor of the action widget is a dialog, dispose it. * * @param context * the action context. */ protected void closeDialog(Map<String, Object> context) { SContainer actionWindow = WingsUtil .getVisibleWindow(getActionWidget(context)); if (actionWindow instanceof SDialog) { ((SDialog) actionWindow).dispose(); } } }
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { IWizardStepDescriptor currentWizardStep = getCurrentWizardStep(context); if (currentWizardStep.getOnLeaveAction() == null || actionHandler.execute(currentWizardStep.getOnLeaveAction(), context)) { dialog.dispose(); actionHandler.execute(finishAction, context); } } });
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { if (performLogin()) { dialog.dispose(); updateControllerFrame(); execute(getStartupAction(), getInitialActionContext()); } else { SOptionPane.showMessageDialog(dialog, getTranslation(LoginUtils.LOGIN_FAILED, getLocale()), getTranslation("error", getLocale()), SOptionPane.ERROR_MESSAGE); } } });