public ModalFooterForceSaveReOpenCancelButtons(final Modal panel, final Command forceSaveCommand, final Command reopenCommand, final Command cancelCommand) { this.forceSaveCommand = checkNotNull("forceSaveCommand", forceSaveCommand); this.reopenCommand = checkNotNull("reopenCommand", reopenCommand); this.cancelCommand = checkNotNull("cancelCommand", cancelCommand); this.panel = checkNotNull("panel", panel); add(uiBinder.createAndBindUi(this)); }
protected AbstractConcurrentChangePopup(final String content, final Command onForceSave, final Command onIgnore, final Command onReOpen) { setTitle(CommonConstants.INSTANCE.Error()); add(new ModalBody() {{ add(uiBinder.createAndBindUi(AbstractConcurrentChangePopup.this)); }}); add(new ModalFooterForceSaveReOpenCancelButtons(this, onForceSave, onReOpen, onIgnore)); message.setHTML(SafeHtmlUtils.fromTrustedString(content)); }
protected AbstractConcurrentChangePopup(final String content, final Command onForceSave, final Command onIgnore, final Command onReOpen) { setTitle(CommonConstants.INSTANCE.Error()); add(new ModalBody() {{ add(uiBinder.createAndBindUi(AbstractConcurrentChangePopup.this)); }}); add(new ModalFooterForceSaveReOpenCancelButtons(this, onForceSave, onReOpen, onIgnore)); message.setHTML(SafeHtmlUtils.fromTrustedString(content)); }
public ModalFooterForceSaveReOpenCancelButtons(final Modal panel, final Command forceSaveCommand, final Command reopenCommand, final Command cancelCommand) { this.forceSaveCommand = checkNotNull("forceSaveCommand", forceSaveCommand); this.reopenCommand = checkNotNull("reopenCommand", reopenCommand); this.cancelCommand = checkNotNull("cancelCommand", cancelCommand); this.panel = checkNotNull("panel", panel); add(uiBinder.createAndBindUi(this)); }