public ModalFooterReOpenIgnoreButtons(final Modal panel, final Command actionCommand, final Command ignoreCommand, final String buttonText) { this.actionCommand = checkNotNull("actionCommand", actionCommand); this.ignoreCommand = checkNotNull("ignoreCommand", ignoreCommand); this.panel = checkNotNull("panel", panel); add(uiBinder.createAndBindUi(this)); this.actionButton.setText(buttonText); }
protected AbstractConcurrentChangePopup(final String content, final Command onIgnore, final Command onAction, final String buttonText) { setTitle(CommonConstants.INSTANCE.Error()); add(new ModalBody() {{ add(uiBinder.createAndBindUi(AbstractConcurrentChangePopup.this)); }}); add(new ModalFooterReOpenIgnoreButtons(this, onAction, onIgnore, buttonText)); message.setHTML(SafeHtmlUtils.fromTrustedString(content)); }
protected AbstractConcurrentChangePopup(final String content, final Command onIgnore, final Command onAction, final String buttonText) { setTitle(CommonConstants.INSTANCE.Error()); add(new ModalBody() {{ add(uiBinder.createAndBindUi(AbstractConcurrentChangePopup.this)); }}); add(new ModalFooterReOpenIgnoreButtons(this, onAction, onIgnore, buttonText)); message.setHTML(SafeHtmlUtils.fromTrustedString(content)); }
public ModalFooterReOpenIgnoreButtons(final Modal panel, final Command actionCommand, final Command ignoreCommand, final String buttonText) { this.actionCommand = checkNotNull("actionCommand", actionCommand); this.ignoreCommand = checkNotNull("ignoreCommand", ignoreCommand); this.panel = checkNotNull("panel", panel); add(uiBinder.createAndBindUi(this)); this.actionButton.setText(buttonText); }