ShowMessage

org.scalafx.extras.ShowMessage
See theShowMessage companion trait
object ShowMessage

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def confirmation(title: String, header: String, content: String, parentWindow: Option[Window]): Boolean

Show a confirmation dialog with "OK" and "Cancel" buttons.

Show a confirmation dialog with "OK" and "Cancel" buttons.

Value parameters

content

content text.

header

header text.

parentWindow

owner window that will be blacked by the dialog.

title

dialog title.

Attributes

Returns

true when user selected 'OK' and false when user selected Cancel or dismissed the dialog.

def confirmationYesNoCancel(title: String, header: String, content: String, parentWindow: Option[Window]): Option[Boolean]

Show a confirmation dialog with "OK", "No", and "Cancel" buttons.

Show a confirmation dialog with "OK", "No", and "Cancel" buttons.

Value parameters

content

content text.

header

header text.

parentWindow

owner window that will be blacked by the dialog.

title

dialog title.

Attributes

Returns

Some(true) when user selected 'OK', Some(false) when user selected No, and None user selected Cancel or dismissed the dialog.

def error(title: String, header: String, content: String, parentWindow: Option[Window]): Unit

Show error dialog

Show error dialog

Value parameters

content

main content text.

header

header text.

parentWindow

owner window that will be blacked by the dialog.

title

dialog title

Attributes

def exception(title: String, message: String, t: Throwable, ownerNode: Node): Unit

Show a modal dialog with an expandable details about an exception (stack trace).

Show a modal dialog with an expandable details about an exception (stack trace).

Value parameters

message

message shown in the dialog header.

ownerNode

owner window that will be blacked by the dialog. Can be null.

t

exception.

title

dialog title

Attributes

def exception(title: String, message: String, t: Throwable, parentWindow: Window): Unit

Show a modal dialog with an expandable details about an exception (stack trace).

Show a modal dialog with an expandable details about an exception (stack trace).

Value parameters

message

message shown in the dialog header.

parentWindow

owner window that will be blacked by the dialog. Can be null to match JavaFX convention.

t

exception.

title

dialog title

Attributes

def exception(title: String, message: String, t: Throwable, parentWindow: Option[Window], resizable: Boolean): Unit

Show a modal dialog with an expandable details about an exception (stack trace).

Show a modal dialog with an expandable details about an exception (stack trace).

Value parameters

message

message shown in the dialog header.

parentWindow

owner window that will be blacked by the dialog.

t

exception.

title

dialog title

Attributes

def information(title: String, header: String, content: String, parentWindow: Option[Window]): Unit

Show information dialog

Show information dialog

Value parameters

content

main content text.

header

header text.

parentWindow

owner window that will be blacked by the dialog.

title

dialog title

Attributes

def information(title: String, header: String, content: String, ownerNode: Node): Unit
def warning(title: String, header: String, content: String, parentWindow: Option[Window]): Unit

Show warning dialog

Show warning dialog

Value parameters

content

main content text.

header

header text.

parentWindow

owner window that will be blacked by the dialog.

title

dialog title

Attributes