ShowMessage

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

Mixin that adds ability to easily show message dialogs. A messageLogger can be provided, so when the error or warning dialogs are shown, they are also logged.

A ShowMessage mixin will typically be used with the ModelFX.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class BusyWorker

Members list

Value members

Concrete methods

def showConfirmation(title: String, header: String, content: String, resizable: Boolean): 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.

title

dialog title.

Attributes

Returns

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

def showConfirmationYesNoCancel(title: String, header: String, content: String, resizable: Boolean): 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.

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 showError(title: String, header: String, content: String, resizable: Boolean): Unit

Show error dialog

Show error dialog

Value parameters

content

main content text.

header

header text.

title

dialog title

Attributes

def showException(title: String, message: String, t: Throwable, resizable: Boolean): Unit

Displays error dialog with expandable exception information.

Displays error dialog with expandable exception information.

Value parameters

message

Message (excluding t.getMessage(), it is automatically displayed)

t

exception to be displayed in the dialog

title

Dialog title

Attributes

def showInformation(title: String, header: String, content: String, resizable: Boolean): Unit

Show information dialog

Show information dialog

Value parameters

content

main content text.

header

header text.

title

dialog title

Attributes

def showWarning(title: String, header: String, content: String, resizable: Boolean): Unit

Show warning dialog

Show warning dialog

Value parameters

content

main content text.

header

header text.

title

dialog title

Attributes