onDeclaredNodesChanged

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, after a composition-local refresh that rewrote such a node, or after a layout node the component's style declares attached, detached or was written; an empty list when none is declared. Every node handed over is attached.

A throw is reported to the thread's uncaught-exception handler, as if this had returned.

Parameters

componentNode

the node of the component whose modifier declares nodes.

nodes

the attached nodes, in declaration order.