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, 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.