Basics
Guides
API Reference
Basics
Guides
API Reference
[23:7] extends: FxObj
Wraps an AussomView (implementation of FXGL's View interface:
Updatable + Disposable + getNode) so Aussom code can author a
custom updatable scene Node. Pair the Node with onUpdate /
onDispose callbacks; the underlying View can then be added to
any FXGL container that accepts View instances
(e.g. GameScene.addGameView).
For the simpler Updatable, Disposable, and Copyable<T>
interfaces (single method each), use the existing aji.closure
pattern:
updatable = aji.closure("com.almasb.fxgl.core.Updatable", cb);
disposable = aji.closure("com.almasb.fxgl.core.Disposable", cb);
copyable = aji.closure("com.almasb.fxgl.core.Copyable", cb);
View (object NodeObj)
Creates a View backed by the supplied JavaFX Node.
NodeObj is a fx.Node wrapper for the view's Node.onUpdate (callback Cb)
Registers an onUpdate callback (called every frame with tpf seconds).
this objectonDispose (callback Cb)
Registers an onDispose callback (called when the view is removed).
this objectgetNode ()
Returns the JavaFX Node backing this view.
An AussomJavaObject around the Node.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.