SingleNodeListCell

open class SingleNodeListCell<T, N : Node>(listView: ListView<T>, item: T, val node: N) : ListCell<T>

An abstract implementation of ListCell which has a single child node of type N. Consider using a HBox for node if you want a ListCell with more than one child nodes.

Inheritors

Constructors

Link copied to clipboard
constructor(listView: ListView<T>, item: T, node: N)

Properties

Link copied to clipboard
open override val children: ObservableList<Node>

The base class Node has no children, so this is an empty list.

Link copied to clipboard
val node: N

Functions

Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.