public interface Display
| Modifier and Type | Method and Description |
|---|---|
void |
showBox(String message,
javafx.scene.Node content,
javafx.scene.control.Button... buttons)
Shows a blocking (stops game execution, method returns normally) generic dialog.
|
void |
showConfirmationBox(String message,
Consumer<Boolean> resultCallback)
Shows a blocking message box with YES and NO buttons.
|
void |
showErrorBox(String errorMessage,
Runnable callback)
Shows a blocking (stops game execution, method returns normally) dialog with the error.
|
void |
showErrorBox(Throwable error)
Shows a blocking (stops game execution, method returns normally) dialog with the error.
|
default void |
showInputBox(String message,
Consumer<String> resultCallback)
Shows a blocking (stops game execution, method returns normally) message box with OK button and input field.
|
void |
showInputBox(String message,
Predicate<String> filter,
Consumer<String> resultCallback)
Shows a blocking (stops game execution, method returns normally) message box with OK button and input field.
|
void |
showInputBoxWithCancel(String message,
Predicate<String> filter,
Consumer<String> resultCallback)
Shows a blocking (stops game execution, method returns normally) message box with OK and CANCEL buttons and input field.
|
default void |
showMessageBox(String message)
Shows a blocking (stops game execution, method returns normally) message box with OK button.
|
void |
showMessageBox(String message,
Runnable callback)
Shows a blocking (stops game execution, method returns normally) message box with OK button.
|
UIDialogHandler |
showProgressBox(String message)
Shows a blocking (stops game execution, method returns normally) progress dialog.
|
default void showMessageBox(String message)
message - the message to showvoid showMessageBox(String message, Runnable callback)
message - the message to showcallback - the function to be called when dialog is dismissedvoid showConfirmationBox(String message, Consumer<Boolean> resultCallback)
message - message to showresultCallback - the function to be calleddefault void showInputBox(String message, Consumer<String> resultCallback)
message - message to showresultCallback - the function to be calledvoid showInputBox(String message, Predicate<String> filter, Consumer<String> resultCallback)
message - message to showfilter - filter to validate inputresultCallback - the function to be calledvoid showInputBoxWithCancel(String message, Predicate<String> filter, Consumer<String> resultCallback)
message - message to showfilter - the filter to validate inputresultCallback - result function to call back or empty string if use cancelled the dialogvoid showErrorBox(Throwable error)
error - the error to showvoid showErrorBox(String errorMessage, Runnable callback)
errorMessage - error message to showcallback - the function to be called when dialog is dismissedvoid showBox(String message, javafx.scene.Node content, javafx.scene.control.Button... buttons)
message - the messagecontent - the contentbuttons - buttons presentUIDialogHandler showProgressBox(String message)
message - message to showCopyright © 2017. All rights reserved.