targetType

abstract val targetType: Class<T>

The component type this element targets. The node's Node.component arrives already typed T; a node that is not a T is rejected at apply with a clear error. Use the most general type the element needs: Component::class.java for a universal property, JComponent::class.java for a JComponent-only one, a concrete widget class for a widget-specific listener.