public class UserPrompt extends Object implements IUserPrompt
IUserPrompt.| Constructor and Description |
|---|
UserPrompt() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Object uiParent,
String title)
Initialize the prompt.
|
boolean |
promptOKCancel(String message)
Prompt the user to decide between "OK" and "Cancel".
|
boolean |
promptYesNoCancel(String message)
Prompt the user to decide between "Yes", "No", and "Cancel".
|
public void initialize(Object uiParent, String title)
IUserPromptinitialize in interface IUserPromptuiParent - The UI parent (used in GUI mode only; can be null otherwise)title - The title of the dialog (used in GUI mode only; can be null)public boolean promptYesNoCancel(String message) throws OkapiUserCanceledException
IUserPromptpromptYesNoCancel in interface IUserPromptmessage - The text message to displayOkapiUserCanceledException - If user cancelspublic boolean promptOKCancel(String message) throws OkapiUserCanceledException
IUserPromptpromptOKCancel in interface IUserPromptmessage - The text message to displayOkapiUserCanceledException - If user cancelsCopyright © 2021. All rights reserved.