DeclaredNodesListener

A component that is handed the modifier nodes it carries, in the order its modifier declares them - what a component that paints or lays out through its nodes implements.

Functions

Link copied to clipboard
abstract fun onDeclaredNodesChanged(componentNode: SwingComponentNode<*>, nodes: List<SwingModifier.Node>)

Receives componentNode and the nodes SwingModifier.Node.visitDeclaredNodes visits on the event dispatch thread, after a modifier pass in which one of them attached, detached, changed place, or was written with a new element whose node automatically invalidates, or after a composition-local refresh that rewrote such a node; an empty list once none stands. Every node handed over is attached.