private ModalFooter footer() { final GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(GuidedDecisionTableErraiConstants.NewPatternView_Cancel), presenter::cancel, ButtonType.DEFAULT); footer.addButton(translate(GuidedDecisionTableErraiConstants.NewPatternView_OK), presenter::addPattern, IconType.PLUS, ButtonType.PRIMARY); return footer; }
public static ModalFooter footer(Widget... buttons) { GenericModalFooter footer = new GenericModalFooter(); Arrays.stream(buttons).forEach(widget -> footer.add(widget)); return footer; } }
@Override public void clear() { footer.clear(); }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.CopyPopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.add(copyButton()); return footer; }
@Override public void addOverrideButton(final Command command) { footer.addButton(ProjectResources.CONSTANTS.ConflictingRepositoriesOverride(), command, ButtonType.DEFAULT); } }
public void addButton(final String caption, final Command command, final ButtonType buttonType) { final Button button = new Button(caption, new ClickHandler() { @Override public void onClick(ClickEvent event) { if (command != null) { command.execute(); } } }); button.setType(buttonType); this.add(button); }
@Override public void addOKButton() { footer.addButton(CommonConstants.INSTANCE.OK(), new Command() { @Override public void execute() { presenter.hide(); } }, IconType.PLUS, ButtonType.PRIMARY); }
public void addButton(final String caption, final Command command, final ButtonType buttonType) { final Button button = new Button(caption, new ClickHandler() { @Override public void onClick(ClickEvent event) { if (command != null) { command.execute(); } } }); button.setType(buttonType); this.add(button); }
private ModalFooter footer() { final GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(GuidedDecisionTableErraiConstants.NewPatternView_Cancel), presenter::cancel, ButtonType.DEFAULT); footer.addButton(translate(GuidedDecisionTableErraiConstants.NewPatternView_OK), presenter::addPattern, IconType.PLUS, ButtonType.PRIMARY); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(cancelButton()); footer.add(addButton()); return footer; }
@Override public void addOKButton() { footer.addButton(CommonConstants.INSTANCE.OK(), new Command() { @Override public void execute() { presenter.hide(); } }, IconType.PLUS, ButtonType.PRIMARY); }
public void addButton(final String caption, final Command command, final IconType iconType, final ButtonType buttonType) { final Button button = new Button(caption, new ClickHandler() { @Override public void onClick(ClickEvent event) { if (command != null) { command.execute(); } } }); button.setType(buttonType); button.setIcon(iconType); this.add(button); } }
@Override public void clear() { footer.clear(); }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.SavePopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.SavePopUpView_Save), saveCommand(), IconType.SAVE, ButtonType.PRIMARY); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(saveButton()); footer.add(cancelButton()); return footer; }
@Override public void addOverrideButton(final Command command) { footer.addButton(ProjectResources.CONSTANTS.ConflictingRepositoriesOverride(), command, ButtonType.DEFAULT); } }
public void addButton(final String caption, final Command command, final IconType iconType, final ButtonType buttonType) { final Button button = new Button(caption, new ClickHandler() { @Override public void onClick(ClickEvent event) { if (command != null) { command.execute(); } } }); button.setType(buttonType); button.setIcon(iconType); this.add(button); } }
@Override public void clear() { footer.clear(); }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.RestorePopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.RestorePopUpView_Restore), restoreCommand(), ButtonType.PRIMARY); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(cancelButton()); footer.add(addButton()); return footer; }