LEVIATHAN v962456e · 962456eee1

moby

class TableView

since 0.1.0-alpha.1linux

bases
Focusable, Scrollable, Bordered, Styleable

Constructors

new

new()

Fields

activateHandlers_

Array<(int) => void> activateHandlers_

activateTokens_

Array<int> activateTokens_

columns_

Array<TableColumn> columns_

enabled

bool enabled

lastPressMs_

int lastPressMs_

lastPressRow_

int lastPressRow_

rowScroller_

RowScroller rowScroller_

selectedRow

int selectedRow

selectHandlers_

Array<(int) => void> selectHandlers_

selectTokens_

Array<int> selectTokens_

separators

bool separators

sortable

bool sortable

sortAsc

bool sortAsc

sortCol

int sortCol

sortHandlers_

Array<(int, bool) => void> sortHandlers_

sortTokens_

Array<int> sortTokens_

source_

ITableSource source_

Methods

clampSelection

clampSelection(int idx, int count) -> int

columnGaps

columnGaps() -> int

columnOnScreen

columnOnScreen(Rect area, int x, int w) -> bool

columns

columns(Array<TableColumn> cols) -> TableView

computeColumnWidths

computeColumnWidths(int availWidth) -> Array<int>

contentDesired

contentDesired(Size avail) -> Size

dataViewportHeight

dataViewportHeight(Rect content) -> int

ensureRowVisible

ensureRowVisible(int idx) -> void

fireActivate

fireActivate(int row) -> void

fireSelect

fireSelect(int row) -> void

fireSort

fireSort(int col, bool asc) -> void

handleHeaderClick

handleHeaderClick(int mouseX, Rect content) -> void

offActivate

offActivate(int token) -> void

offSelect

offSelect(int token) -> void

offSort

offSort(int token) -> void

onActivate

onActivate((int) => void h) -> int

onSelect

onSelect((int) => void h) -> int

onSort

onSort((int, bool) => void h) -> int

paintCell

paintCell(Surface s, Rect area, int x, int y, int w, string label, Align align, Style st) -> void

paintChrome

paintChrome(Surface s) -> void

paintContent

paintContent(Surface s) -> void

paintHeader

paintHeader(Surface s, Rect content, Array<int> widths) -> void

paintRow

paintRow(Surface s, Rect rowsArea, Array<int> widths, int idx, int y) -> void

refresh

refresh() -> void

scrollTo

scrollTo(int x, int y) -> void

selectRow

selectRow(int idx) -> void

separatorGlyph

separatorGlyph() -> char

separators

separators(bool value) -> TableView

setColumns

setColumns(Array<TableColumn> cols) -> void

setEnabled

setEnabled(bool value) -> void

setSelected

setSelected(int idx) -> void

setSeparators

setSeparators(bool value) -> void

setSortable

setSortable(bool value) -> void

setSource

setSource(ITableSource src) -> void

sortable

sortable(bool value) -> TableView

sortIndicatorSuffix

sortIndicatorSuffix() -> string

totalColumnsWidth

totalColumnsWidth(int availWidth) -> int