ListCell

abstract class ListCell<T>(val listView: ListView<T>, val item: T) : Region

ListCells are the visible Nodes within a ListView. ListCells are created as-needed (and left to be garbage collected when unused), as the user scrolls through the ListView.

Theme DSL

"list_cell" {
    // It is common to change the background color of odd or even cells.
    ":odd" { ... }
    ":even" { ... }

    // The selected row of the ListView.
    ":selected" { ... }
}

ListCell inherits all the features of Region.

Inheritors

Constructors

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

Properties

Link copied to clipboard
var index: Int
Link copied to clipboard
Link copied to clipboard
val item: T
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String