Basics
Guides
API Reference
Basics
Guides
API Reference
[27:7] extends: FxObj
Wraps FXGL's PropertyChangeListener single-method interface (com.almasb.fxgl.core.collection.PropertyChangeListener). The interface has one method, onChange(oldValue, newValue), so the wrapper builds the underlying listener via aji.closure — no Java helper needed. Register the listener with PropertyMap.addListener(name, listener). Example: pm = new PropertyMap(); pm.setValue("hp", 100); listener = new PropertyChangeListener(::onHp); pm.addListener("hp", listener.obj); public onHp(oldV, newV) { console.println("HP changed: " + oldV + " -> " + newV); }
PropertyChangeListener (callback Cb = null)
Creates a new PropertyChangeListener around an Aussom callback.
Cb is a callback (oldValue, newValue) -> any.adopt (object Ajo)
Wraps an existing PropertyChangeListener AussomJavaObject.
onChange (object OldValue, object NewValue)
Triggers the onChange callback with the supplied (OldValue, NewValue) pair. The engine normally drives this.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.