TableView

fun <T> TableView(    posX: Number = 0,     posY: Number = 0,     width: Number = DEFAULT_TABLE_VIEW_WIDTH,     height: Number = DEFAULT_TABLE_VIEW_HEIGHT,     columns: List<TableColumn<T>> = emptyList(),     items: List<T> = emptyList(),     visual: Visual = ColorVisual.WHITE,     selectionMode: SelectionMode = SelectionMode.SINGLE,     selectionBackground: ColorVisual = ColorVisual.BLUE)

Creates a TableView.

Parameters

T

Generic TableView content.

posX

Horizontal coordinate for this TableView. Default: 0.

posY

Vertical coordinate for this TableView. Default: 0.

width

Width for this TableView. Default: DEFAULT_TABLE_VIEW_WIDTH.

height

Height for this TableView. Default: DEFAULT_TABLE_VIEW_HEIGHT.

columns

Initial columns for this TableView. Default: empty list.

items

Initial list of items for this TableView. Default: empty list.

visual

Background Visual. Default: ColorVisual.WHITE.

selectionMode

Selection mode to be used for this TableView. Default: SelectionMode.SINGLE.

selectionBackground

Background for selected items in this TableView. Default: ColorVisual.BLUE.