LEVIATHAN v962456e · 962456eee1

dagon

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_

delegate_

IRowDelegate delegate_

hoveredRow_

int hoveredRow_

lastPressMs_

int lastPressMs_

lastPressRow_

int lastPressRow_

model_

modelChangeToken_

int modelChangeToken_

rowHeight_

int rowHeight_

scroller_

RowScroller scroller_

selected_

int selected_

selectHandlers_

Array<(int) => void> selectHandlers_

selectTokens_

Array<int> selectTokens_

sortAsc_

bool sortAsc_

sortColumn_

int sortColumn_

sortHandlers_

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

sortTokens_

Array<int> sortTokens_

Methods

bodyHeight

bodyHeight() -> int

column

column(int idx, Constraint width, Align align, bool sortable) -> TableView

columnOffsets_

columnOffsets_() -> Array<int>

columnWidths_

columnWidths_() -> Array<int>

contentDesired

contentDesired(Size avail) -> Size

fireActivate

fireActivate(int idx) -> void

fireSelect

fireSelect(int idx) -> void

fireSort

fireSort(int col, bool asc) -> void

handleHeaderPress

handleHeaderPress(int mouseX) -> void

model

offActivate

offActivate(int t) -> void

offSelect

offSelect(int t) -> void

offSort

offSort(int t) -> void

onActivate

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

onModelChange

onModelChange(ModelEvent e) -> void

onSelect

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

onSort

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

paintChrome

paintChrome(Canvas c) -> void

paintContent

paintContent(Canvas c) -> void

paintHeader

paintHeader(Canvas c, Rect content) -> void

refresh

refresh() -> void

rowAtY

rowAtY(Rect full, int bodyY, int y) -> int

scrollTo

scrollTo(int x, int y) -> void

selectIndex

selectIndex(int idx) -> void

syncColumns

syncColumns() -> void