org.vaadin.dialogs.ConfirmDialog Java Examples
The following examples show how to use
org.vaadin.dialogs.ConfirmDialog.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfirmDialogExt.java From mycollab with GNU Affero General Public License v3.0 | 6 votes |
@Override public ConfirmDialog create(String caption, String message, String okCaption, String cancelCaption, String notOkCaption) { ConfirmDialog d = super.create(caption, message, okCaption, cancelCaption, notOkCaption); d.getContent().setStyleName("custom-dialog"); d.getContent().setHeightUndefined(); d.setHeightUndefined(); Button ok = d.getOkButton(); ok.setStyleName(WebThemes.BUTTON_ACTION); HorizontalLayout buttons = (HorizontalLayout) ok.getParent(); buttons.setHeightUndefined(); Button cancelBtn = d.getCancelButton(); cancelBtn.setStyleName(WebThemes.BUTTON_OPTION); cancelBtn.focus(); return d; }
Example #2
Source File: ConfirmButton.java From viritin with Apache License 2.0 | 5 votes |
@Override protected void fireClick(final MouseEventDetails details) { ConfirmDialog dialog = ConfirmDialog.show(getUI(), getConfirmWindowCaption(), getConfirmationText(), getOkCaption(), getCancelCaption(), new Runnable() { @Override public void run() { doFireClickListener(details); } }); dialog.getOkButton().addStyleName(confirmWindowOkButtonStyle); }
Example #3
Source File: ConfirmDialogExt.java From mycollab with GNU Affero General Public License v3.0 | 4 votes |
public static ConfirmDialog show(UI parentWindow, String windowCaption, String message, String okCaption, String cancelCaption, Listener listener) { ConfirmDialog.setFactory(new ConfirmDialogFactory()); return ConfirmDialog.show(parentWindow, windowCaption, message, okCaption, cancelCaption, listener); }