Basics
Guides
API Reference
Basics
Guides
API Reference
[45:7] extends: EngineService
Wraps an AussomDialogFactoryService (subclass of FXGL's abstract DialogFactoryService). This is a subclass-extension contract: FXGL calls into the registered service when a dialog is requested, and each abstract method dispatches to the matching Aussom callback. When a callback is not supplied, the bridge returns null for that dialog, so callers should always wire the dialog methods their game uses. Each Aussom callback must return an AussomJavaObject around a javafx.scene.layout.Pane (the dialog body). Callbacks that receive a Runnable / Consumer / Predicate get those wrapped as raw AussomJavaObjects; invoke them via aji.invokeRaw on the appropriate method (run, accept, test). Method signatures (matching the abstract base): onMessageDialog(message) onMessageDialogCb(message, runnableAjo) onConfirmationDialog(message, consumerAjo) onChoiceDialogVarargs(message, consumerAjo, firstOptionAjo, optionsListOfAjo) onChoiceDialogList(message, optionsListOfAjo, consumerAjo) onInputDialog(message, consumerAjo) onInputDialogFiltered(message, predicateAjo, consumerAjo) onInputDialogWithCancel(message, predicateAjo, consumerAjo) onErrorDialogThrowable(throwableAjo) onErrorDialogThrowableCb(throwableAjo, runnableAjo) onErrorDialogMessage(errorMessage) onErrorDialogMessageCb(errorMessage, runnableAjo) onProgressDialog(message, observableDoublePropertyAjo, runnableAjo) onProgressDialogIndeterminate(message, runnableAjo) onCustomDialog(message, contentNodeAjo, runnableAjo, buttonsListOfAjo)
DialogFactoryService ()
Creates a new DialogFactoryService bridge.
adopt (object Ajo)
Wraps an existing service AussomJavaObject.
Ajo is an AussomJavaObject around an AussomDialogFactoryService.A new wrapper.onMessageDialog (callback Cb)
Registers the single-argument messageDialog handler.
Cb is a callback (string message) -> Pane AJO.this objectonMessageDialogCb (callback Cb)
Registers the messageDialog handler with a follow-up Runnable.
Cb is a callback (string message, runnableAjo) -> Pane AJO.this objectonConfirmationDialog (callback Cb)
Registers the confirmationDialog handler.
Cb is a callback (string message, consumerAjo) -> Pane AJO.this objectonChoiceDialogVarargs (callback Cb)
Registers the varargs choiceDialog handler.
Cb is a callback (string message, consumerAjo, firstOptionAjo, optionsListOfAjo) -> Pane AJO.this objectonChoiceDialogList (callback Cb)
Registers the List-form choiceDialog handler.
Cb is a callback (string message, optionsListOfAjo, consumerAjo) -> Pane AJO.this objectonInputDialog (callback Cb)
Registers the inputDialog handler.
Cb is a callback (string message, consumerAjo) -> Pane AJO.this objectonInputDialogFiltered (callback Cb)
Registers the filtered inputDialog handler.
Cb is a callback (string message, predicateAjo, consumerAjo) -> Pane AJO.this objectonInputDialogWithCancel (callback Cb)
Registers the inputDialogWithCancel handler.
Cb is a callback (string message, predicateAjo, consumerAjo) -> Pane AJO.this objectonErrorDialogThrowable (callback Cb)
Registers the Throwable-only errorDialog handler.
Cb is a callback (throwableAjo) -> Pane AJO.this objectonErrorDialogThrowableCb (callback Cb)
Registers the Throwable+Runnable errorDialog handler.
Cb is a callback (throwableAjo, runnableAjo) -> Pane AJO.this objectonErrorDialogMessage (callback Cb)
Registers the message-only errorDialog handler.
Cb is a callback (string message) -> Pane AJO.this objectonErrorDialogMessageCb (callback Cb)
Registers the message+Runnable errorDialog handler.
Cb is a callback (string message, runnableAjo) -> Pane AJO.this objectonProgressDialog (callback Cb)
Registers the determinate progressDialog handler.
Cb is a callback (string message, readOnlyDoublePropertyAjo, runnableAjo) -> Pane AJO.this objectonProgressDialogIndeterminate (callback Cb)
Registers the indeterminate progressDialog handler.
Cb is a callback (string message, runnableAjo) -> Pane AJO.this objectonCustomDialog (callback Cb)
Registers the customDialog handler.
Cb is a callback (string message, contentNodeAjo, runnableAjo, buttonsListOfAjo) -> Pane AJO.this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.