EditorDialog

org.sphix.ui.editor.EditorDialog
class EditorDialog[A >: Null](title: Option[String], ok: Option[String], label: Option[String])(using factory: EditorFactory[A]) extends Dialog[A]

A simple way to have an Editor shown in a dialog and return the result when the dialog is submitted. The dialog can be customized with title, "OK" button text and label for the editor. The dialog will only allow submission when the data in the editor is valid. The dialog is resizable and will size to the content. This dialog can also be constructed from an EditorFactory with the toDialog method.

Attributes

Graph
Supertypes
class Dialog[A]
trait EventTarget
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this()(using EditorFactory[A])
def this(title: String)(using EditorFactory[A])
def this(title: String, ok: String)(using EditorFactory[A])
def this(title: String, ok: String, label: String)(using EditorFactory[A])

Concrete methods

def onLayoutChange(): Unit
def withInitialValue(value: A): EditorDialog[A]
def withInitialValueOption(value: Option[A]): EditorDialog[A]

Inherited methods

final def addEventFilter[E <: Event](x$0: EventType[E], x$1: EventHandler[_ >: E <: <FromJavaObject>]): Unit

Attributes

Inherited from:
Dialog
final def addEventHandler[E <: Event](x$0: EventType[E], x$1: EventHandler[_ >: E <: <FromJavaObject>]): Unit

Attributes

Inherited from:
Dialog
def buildEventDispatchChain(x$0: EventDispatchChain): EventDispatchChain

Attributes

Inherited from:
Dialog
final def close(): Unit

Attributes

Inherited from:
Dialog
final def contentTextProperty(): StringProperty

Attributes

Inherited from:
Dialog
final def dialogPaneProperty(): ObjectProperty[DialogPane]

Attributes

Inherited from:
Dialog
final def getContentText(): String

Attributes

Inherited from:
Dialog
final def getDialogPane(): DialogPane

Attributes

Inherited from:
Dialog
final def getGraphic(): Node

Attributes

Inherited from:
Dialog
final def getHeaderText(): String

Attributes

Inherited from:
Dialog
final def getHeight(): Double

Attributes

Inherited from:
Dialog
final def getModality(): Modality

Attributes

Inherited from:
Dialog
final def getOnCloseRequest(): EventHandler[DialogEvent]

Attributes

Inherited from:
Dialog
final def getOnHidden(): EventHandler[DialogEvent]

Attributes

Inherited from:
Dialog
final def getOnHiding(): EventHandler[DialogEvent]

Attributes

Inherited from:
Dialog
final def getOnShowing(): EventHandler[DialogEvent]

Attributes

Inherited from:
Dialog
final def getOnShown(): EventHandler[DialogEvent]

Attributes

Inherited from:
Dialog
final def getOwner(): Window

Attributes

Inherited from:
Dialog
final def getResult(): A

Attributes

Inherited from:
Dialog
final def getResultConverter(): Callback[ButtonType, A]

Attributes

Inherited from:
Dialog
final def getTitle(): String

Attributes

Inherited from:
Dialog
final def getWidth(): Double

Attributes

Inherited from:
Dialog
final def getX(): Double

Attributes

Inherited from:
Dialog
final def getY(): Double

Attributes

Inherited from:
Dialog
final def graphicProperty(): ObjectProperty[Node]

Attributes

Inherited from:
Dialog
final def headerTextProperty(): StringProperty

Attributes

Inherited from:
Dialog
final def heightProperty(): ReadOnlyDoubleProperty

Attributes

Inherited from:
Dialog
final def hide(): Unit

Attributes

Inherited from:
Dialog
final def initModality(x$0: Modality): Unit

Attributes

Inherited from:
Dialog
final def initOwner(x$0: Window): Unit

Attributes

Inherited from:
Dialog
final def initStyle(x$0: StageStyle): Unit

Attributes

Inherited from:
Dialog
final def isResizable(): Boolean

Attributes

Inherited from:
Dialog
final def isShowing(): Boolean

Attributes

Inherited from:
Dialog
final def onCloseRequestProperty(): ObjectProperty[EventHandler[DialogEvent]]

Attributes

Inherited from:
Dialog
final def onHiddenProperty(): ObjectProperty[EventHandler[DialogEvent]]

Attributes

Inherited from:
Dialog
final def onHidingProperty(): ObjectProperty[EventHandler[DialogEvent]]

Attributes

Inherited from:
Dialog
final def onShowingProperty(): ObjectProperty[EventHandler[DialogEvent]]

Attributes

Inherited from:
Dialog
final def onShownProperty(): ObjectProperty[EventHandler[DialogEvent]]

Attributes

Inherited from:
Dialog
final def removeEventFilter[E <: Event](x$0: EventType[E], x$1: EventHandler[_ >: E <: <FromJavaObject>]): Unit

Attributes

Inherited from:
Dialog
final def removeEventHandler[E <: Event](x$0: EventType[E], x$1: EventHandler[_ >: E <: <FromJavaObject>]): Unit

Attributes

Inherited from:
Dialog
final def resizableProperty(): BooleanProperty

Attributes

Inherited from:
Dialog
final def resultConverterProperty(): ObjectProperty[Callback[ButtonType, A]]

Attributes

Inherited from:
Dialog
final def resultProperty(): ObjectProperty[A]

Attributes

Inherited from:
Dialog
final def setContentText(x$0: String): Unit

Attributes

Inherited from:
Dialog
final def setDialogPane(x$0: DialogPane): Unit

Attributes

Inherited from:
Dialog
final def setGraphic(x$0: Node): Unit

Attributes

Inherited from:
Dialog
final def setHeaderText(x$0: String): Unit

Attributes

Inherited from:
Dialog
final def setHeight(x$0: Double): Unit

Attributes

Inherited from:
Dialog
final def setOnCloseRequest(x$0: EventHandler[DialogEvent]): Unit

Attributes

Inherited from:
Dialog
final def setOnHidden(x$0: EventHandler[DialogEvent]): Unit

Attributes

Inherited from:
Dialog
final def setOnHiding(x$0: EventHandler[DialogEvent]): Unit

Attributes

Inherited from:
Dialog
final def setOnShowing(x$0: EventHandler[DialogEvent]): Unit

Attributes

Inherited from:
Dialog
final def setOnShown(x$0: EventHandler[DialogEvent]): Unit

Attributes

Inherited from:
Dialog
final def setResizable(x$0: Boolean): Unit

Attributes

Inherited from:
Dialog
final def setResult(x$0: A): Unit

Attributes

Inherited from:
Dialog
final def setResultConverter(x$0: Callback[ButtonType, A]): Unit

Attributes

Inherited from:
Dialog
final def setTitle(x$0: String): Unit

Attributes

Inherited from:
Dialog
final def setWidth(x$0: Double): Unit

Attributes

Inherited from:
Dialog
final def setX(x$0: Double): Unit

Attributes

Inherited from:
Dialog
final def setY(x$0: Double): Unit

Attributes

Inherited from:
Dialog
final def show(): Unit

Attributes

Inherited from:
Dialog
final def showAndWait(): Optional[A]

Attributes

Inherited from:
Dialog
final def showingProperty(): ReadOnlyBooleanProperty

Attributes

Inherited from:
Dialog
final def titleProperty(): StringProperty

Attributes

Inherited from:
Dialog
final def widthProperty(): ReadOnlyDoubleProperty

Attributes

Inherited from:
Dialog
final def xProperty(): ReadOnlyDoubleProperty

Attributes

Inherited from:
Dialog
final def yProperty(): ReadOnlyDoubleProperty

Attributes

Inherited from:
Dialog

Concrete fields

val content: Node
val editor: Editor[A]
val executeButton: Button
val executeButtonType: ButtonType
val valid: ObservableValue[Boolean]