SlotAttachment

fun interface SlotAttachment

An attachment to a host that has its own method for holding children, such as JScrollPane.setViewportView, instead of the usual Container.add.

The host names its ChildPlacement:

The attachment belongs to the host: the container composable wrapping it hands each of its regions the attachment that installs a component there. A child reaches a region through org.jetbrains.compose.swing.modifier.layout.slot, which names the region it fills.

See also

Functions

Link copied to clipboard
abstract fun install(host: Container, component: Component, index: Int): () -> Unit

Attaches component to host, and returns the action that detaches it again.