public static void prompt(String message, String title, String responses, IResponseCallback<DialogResponse<String>> callback) { prompt(message, title, null, responses, null, null, null, callback); }
/** * Present a confirmation (OK/Cancel) dialog with the specified prompt and return the user * response. * * @param message Prompt to present to the user. * @param title Caption of prompt dialog. * @param responseId Optional response id if user response is to be cached. If null, the * response will not be cached. If specified, the response is cached and the user is * not prompted again. * @param callback Callback to receive dialog response. */ public static void confirm(String message, String title, String responseId, IConfirmCallback callback) { prompt(message, title, STYLES_QUESTION, LABEL_IDS_OK_CANCEL, LABEL_ID_CANCEL, null, responseId, (response) -> { IResponseCallback.invoke(callback, response != null && response.isOk()); }); }
DialogUtil.prompt(msg, TITLE_TOO_MANY_MATCHES, REFINE_BUTTONS, (response) -> { if (response.hasResponse(BTN_REFINE_LABEL)) { matches.clear();