trait ShowMessage extends AnyRef
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.
- Source
- ShowMessage.scala
- Alphabetic
- By Inheritance
- ShowMessage
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def messageLogger: Option[ShowMessageLogger]
Logger to use for error and warning dialogs.
Logger to use for error and warning dialogs.
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def showConfirmation(title: String, header: String, content: String = ""): Boolean
Show a confirmation dialog with "OK" and "Cancel" buttons.
Show a confirmation dialog with "OK" and "Cancel" buttons.
- title
dialog title.
- header
header text.
- content
content text.
- returns
true
when user selected 'OK' andfalse
when user selectedCancel
or dismissed the dialog.
- def showConfirmationYesNoCancel(title: String, header: String, content: String = ""): Option[Boolean]
Show a confirmation dialog with "OK", "No", and "Cancel" buttons.
Show a confirmation dialog with "OK", "No", and "Cancel" buttons.
- title
dialog title.
- header
header text.
- content
content text.
- returns
Some(true)
when user selected 'OK',Some(false)
when user selectedNo
, andNone
user selectedCancel
or dismissed the dialog.
- def showError(title: String, header: String, content: String = ""): Unit
Show error dialog
Show error dialog
- title
dialog title
- header
header text.
- content
main content text.
- def showException(title: String, message: String, t: Throwable): Unit
Displays error dialog with expandable exception information.
Displays error dialog with expandable exception information.
- title
Dialog title
- message
Message (excluding t.getMessage(), it is automatically displayed)
- t
exception to be displayed in the dialog
- def showInformation(title: String, header: String, content: String): Unit
Show information dialog
Show information dialog
- title
dialog title
- header
header text.
- content
main content text.
- def showWarning(title: String, header: String, content: String): Unit
Show warning dialog
Show warning dialog
- title
dialog title
- header
header text.
- content
main content text.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Helper methods and classes to simplify ScalaFX use.
Package
org.scalafx.extras
contains basic helper methods for running tasks on threads and showing messages.Package
org.scalafx.extras.image
contains image display component with scrolling and zooming.Package
org.scalafx.extras.mvcfx
contains classes for creating with UI components based on FXML.