/** * Displays a message box with OK and Cancel buttons prompting the user to * enter some text (comparable to JavaScript's prompt). * * @param title the title bar text * @param msg the message box body text * @return the new message box */ public static MessageBox prompt(String title, String msg) { return prompt(title, msg, false, null); }
/** * Displays a message box with OK and Cancel buttons prompting the user to * enter some text (comparable to JavaScript's prompt). * * @param title the title bar text * @param msg the message box body text * @param multiline true for a multi-line text aread * @return the new message box */ public static MessageBox prompt(String title, String msg, boolean multiline) { return prompt(title, msg, multiline, null); }
/** * Displays a message box with OK and Cancel buttons prompting the user to * enter some text (comparable to JavaScript's prompt). * * @param title the title bar text * @param msg the message box body text * @param callback the callback * @return the new message box */ public static MessageBox prompt(String title, String msg, Listener<MessageBoxEvent> callback) { return prompt(title, msg, false, callback); }