Package cl.obcom.desktopfx.jfx
Class Dialog
java.lang.Object
cl.obcom.desktopfx.jfx.Dialog
Implements the Desktop Message Dialog.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DialogAction
showConfirm
(Object owner, String message) Displays a confirmation dialog using owner and message.static DialogAction
showConfirm
(Object owner, String message, String title) Displays a confirmation dialog using owner, message and title.static DialogAction
showConfirm
(Object owner, String message, String title, DialogOption option) Displays a confirmation dialog using owner, message, title and option.static void
Displays an error message dialog using owner, message, title and throwable.static void
Displays an error message dialog using owner, message and throwable.static void
Displays an error message dialog using owner and throwable.static String
Displays an input dialog using owner and message.static String
Displays an input dialog using owner, message and title.static String
Displays an input dialog using owner, message and title.static void
showMessage
(Object owner, String message) Displays an information message dialog using owner and message.static void
showMessage
(Object owner, String message, String title) Displays an information message dialog using owner, message and title.static void
showMessage
(Object owner, String message, String title, DialogType type) Displays an message dialog using owner, message, title and type.
-
Method Details
-
showInput
Displays an input dialog using owner and message.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).- Returns:
- the user's input or
null
if the user canceled the input.
-
showInput
Displays an input dialog using owner, message and title.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).- Returns:
- the user's input or
null
if the user canceled the input.
-
showInput
Displays an input dialog using owner, message and title.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).initial
- the initial value of the input (can be null).- Returns:
- the user's input or
null
if the user canceled the input.
-
showMessage
Displays an information message dialog using owner and message.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).
-
showMessage
Displays an information message dialog using owner, message and title.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).
-
showMessage
Displays an message dialog using owner, message, title and type.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).type
- the type of the dialog (can be null).
-
showConfirm
Displays a confirmation dialog using owner and message.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).- Returns:
- the selected dialog action button.
-
showConfirm
Displays a confirmation dialog using owner, message and title.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).- Returns:
- the selected dialog action button.
-
showConfirm
public static DialogAction showConfirm(Object owner, String message, String title, DialogOption option) Displays a confirmation dialog using owner, message, title and option.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).option
- the option of the dialog (can be null).- Returns:
- the selected dialog action button.
-
showError
Displays an error message dialog using owner and throwable.- Parameters:
owner
- determines the owner of the dialog (can be null).thrown
- the error throwable (can be null).
-
showError
Displays an error message dialog using owner, message and throwable.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).thrown
- the error throwable (can be null).
-
showError
Displays an error message dialog using owner, message, title and throwable.- Parameters:
owner
- determines the owner of the dialog (can be null).message
- the message of the dialog (can be null).title
- the title of the dialog (can be null).thrown
- the error throwable (can be null).
-