onChange

inline fun <T : Actor> T.onChange(crossinline listener: T.() -> Unit): ChangeListener

Attaches a ChangeListener to this actor.

Return

ChangeListener instance.

Parameters

listener

invoked each time a ChangeEvent is fired for this actor. Consumes the Actor as this.