Table View
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)
Content copied to clipboard
Creates a TableView.
Parameters
T
Generic TableView content.
pos X
Horizontal coordinate for this TableView. Default: 0.
pos Y
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.
selection Mode
Selection mode to be used for this TableView. Default: SelectionMode.SINGLE.
selection Background
Background for selected items in this TableView. Default: ColorVisual.BLUE.