TableCellScope

sealed interface TableCellScope

The receiver a Table cell composes against: the inputs the table hands a TableCellRenderer for the cell being stamped, exposed as read-only composition state so the cell can lay itself out by row, column, selection and focus.

Mirrors the arguments of javax.swing.table.TableCellRenderer.getTableCellRendererComponent. Both indices are in the model's row and column space - the space rows and columns are declared in - rather than the position the cell is drawn at, so sorting, filtering and a column drag never change which cell an index names.

See also

Properties

Link copied to clipboard
abstract val columnIndex: Int

The index into the table's columns of the column being rendered.

Link copied to clipboard
abstract val hasFocus: Boolean

Whether the cell being rendered currently draws the focus decoration.

Link copied to clipboard
abstract val isSelected: Boolean

Whether the cell being rendered is part of the table's selection.

Link copied to clipboard
abstract val rowIndex: Int

The index into the table's rows of the row being rendered.