SwingComponentNodeListener

A component that is told the SwingComponentNodes holding it while they are attached to a composition: a node a composition declares for it, and the node a setContent call on it roots its content at. Both can be attached at once, and the component is told about each one separately.

Functions

Link copied to clipboard
abstract fun onAttached(node: SwingComponentNode<*>)

Called on the Event Dispatch Thread when node attaches to a composition.

Link copied to clipboard
abstract fun onDetached(node: SwingComponentNode<*>)

Called on the Event Dispatch Thread when node detaches: it is reused, deactivated, released, moved to another composition, or its composition is disposed. A reused node is attached again right after.