/** * Fire button event with id and button name. * * @param id * @param buttonName */ public void fireButtonEvent(int id, String buttonName) { fireButtonEvent(id, buttonName, null); }
/** * Fire button event with id. The only event that doesn't take a button name as parameter is the {@link * ButtonEvent#CLEAR_DEFAULT_BUTTON} event. * * @param id */ public void fireButtonEvent(int id) { fireButtonEvent(id, null, null); }
protected UpdateWorker(String activity, WizardDialog wizard, JLabel progressLabel, JProgressBar progressBar, JButton workButton) { super(activity, wizard, progressLabel, progressBar, workButton); wizard.getCurrentPage().fireButtonEvent(ButtonEvent.DISABLE_BUTTON, ButtonNames.BACK); }
@Override protected void showSuccess(Void result) { super.showSuccess(result); wizard.getCurrentPage().fireButtonEvent(ButtonEvent.ENABLE_BUTTON, ButtonNames.NEXT); }
public void actionPerformed(ActionEvent e) { if (getCurrentPage() != null) { getCurrentPage().fireButtonEvent(ButtonEvent.DISABLE_BUTTON, APPLY); } } });
public void actionPerformed(ActionEvent e) { if (getCurrentPage() != null) { getCurrentPage().fireButtonEvent(ButtonEvent.DISABLE_BUTTON, APPLY); } } });
@Override protected void showSuccess(Void result) { super.showSuccess(result); wizard.getCurrentPage().fireButtonEvent(ButtonEvent.ENABLE_BUTTON, ButtonNames.NEXT); }