/** * Parameters for the dialog. * * @param message Text message * @param title Title of dialog * @param styles Style classes for icon, message text, and panel (pipe-delimited) * @param responses Button captions separated by vertical bars * @param excludeResponses Only applies if saveResponseId is specified. This is a list of * responses that will not be saved and is specified in the same format as the * buttonCaptions parameter. * @param defaultResponse Caption of button to have initial focus * @param saveResponseId Uniquely identifies this response for purposes of saving and retrieving * the last response. If not specified (null or empty), the response is not saved. * Otherwise, if a saved response exists, it is returned without displaying the * dialog. If a saved response does not exist, the user is prompted in the normal * manner with the addition of a check box on the dialog asking if the response is to * be saved. If this box is checked, the user's response is then saved as a user * preference. * @param callback Callback to receive response. * @return DialogParameters instance. */ public static DialogControl<String> create(String message, String title, String styles, String responses, String excludeResponses, String defaultResponse, String saveResponseId, IPromptCallback<String> callback) { return new DialogControl<>(message, title, styles, toList(responses), toList(excludeResponses), defaultResponse, saveResponseId, callback); }