Package org.vaadin.firitin.util
Class BrowserPrompt
java.lang.Object
org.vaadin.firitin.util.BrowserPrompt
Helper class to use browser prompts.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<String>
showPrompt
(com.vaadin.flow.component.UI ui, String message, String defaultValue) Shows a browser prompt.static CompletableFuture<String>
showPrompt
(String message) Shows a browser prompt.static CompletableFuture<String>
showPrompt
(String message, String defaultValue) Shows a browser prompt.
-
Constructor Details
-
BrowserPrompt
public BrowserPrompt()
-
-
Method Details
-
showPrompt
Shows a browser prompt.- Parameters:
message
- the message to show- Returns:
- the value entered by the user
-
showPrompt
Shows a browser prompt.- Parameters:
message
- the message to showdefaultValue
- the default value to show- Returns:
- the value entered by the user
-
showPrompt
public static CompletableFuture<String> showPrompt(com.vaadin.flow.component.UI ui, String message, String defaultValue) Shows a browser prompt.- Parameters:
ui
- the UI to usemessage
- the message to showdefaultValue
- the default value to show- Returns:
- the value entered by the user
-