public static ModalFooter footer(Widget... buttons) { GenericModalFooter footer = new GenericModalFooter(); Arrays.stream(buttons).forEach(widget -> footer.add(widget)); return footer; } }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(saveButton()); footer.add(cancelButton()); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(cancelButton()); footer.add(addButton()); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(cancelButton()); footer.add(addButton()); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(cancelButton()); footer.add(addButton()); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.add(cancelButton()); footer.add(deleteButton()); return footer; }
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() { 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.addButton(translate(Constants.CopyPopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.add(copyButton()); return footer; }
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.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.addButton(translate(Constants.CopyPopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.CopyPopUpView_MakeACopy), copyCommand(), ButtonType.PRIMARY); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.DeletePopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.DeletePopUpView_Delete), deleteCommand(), IconType.REMOVE, ButtonType.DANGER); return footer; }
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.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.addButton(translate(Constants.DeletePopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.DeletePopUpView_Delete), deleteCommand(), IconType.REMOVE, ButtonType.DANGER); return footer; }
private ModalFooter footer() { GenericModalFooter footer = new GenericModalFooter(); footer.addButton(translate(Constants.CopyPopUpView_Cancel), cancelCommand(), ButtonType.DEFAULT); footer.addButton(translate(Constants.CopyPopUpView_MakeACopy), copyCommand(), ButtonType.PRIMARY); return footer; }
public VariableHistoryPopup() { setTitle( Constants.INSTANCE.History() ); setBody( uiBinder.createAndBindUi( this ) ); init(); final GenericModalFooter footer = new GenericModalFooter(); footer.addButton( Constants.INSTANCE.Ok(), new Command() { @Override public void execute() { closePopup(); } }, null, ButtonType.PRIMARY ); add( footer ); }
public VariableHistoryPopup() { setTitle(Constants.INSTANCE.History()); setBody(uiBinder.createAndBindUi(this)); init(); final GenericModalFooter footer = new GenericModalFooter(); footer.addButton(Constants.INSTANCE.Ok(), new Command() { @Override public void execute() { closePopup(); } }, null, ButtonType.PRIMARY); add(footer); }
@Override public void display( GenericFormDisplayer displayer ) { currentDisplayer = displayer; body.clear(); body.add( displayer.getContainer() ); ( (AbstractStartProcessFormDisplayer) displayer ) .setParentProcessInstanceId( this.parentProcessInstanceId ); removeFooter( this ); footer = new GenericModalFooter(); if ( displayer.getOpener() == null ) { footer.add( displayer.getFooter() ); } add( footer ); initialized = true; }