LEVIATHAN v962456e · 962456eee1

dagon

class TreeView

since 0.1.0-alpha.1linux

bases
Focusable, Scrollable, Bordered, Styleable

Constructors

new

new()

Fields

activateHandlers_

Array<(int) => void> activateHandlers_

activateTokens_

Array<int> activateTokens_

delegate_

IRowDelegate delegate_

expanded_

Map<int, bool> expanded_

expandHandlers_

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

expandTokens_

Array<int> expandTokens_

flat_

Array<TreeRow> flat_

model_

ITreeModel model_

modelChangeToken_

int modelChangeToken_

rowHeight_

int rowHeight_

scroller_

RowScroller scroller_

selected_

int selected_

selectHandlers_

Array<(int) => void> selectHandlers_

selectTokens_

Array<int> selectTokens_

Methods

contentDesired

contentDesired(Size avail) -> Size

ensureVisible

ensureVisible(int idx) -> void

fireActivate

fireActivate(int idx) -> void

fireExpand

fireExpand(int node, bool value) -> void

fireSelect

fireSelect(int idx) -> void

flattenInto

flattenInto(Array<TreeRow> acc, int node, int depth) -> Array<TreeRow>

handleLeft

handleLeft() -> void

handleRight

handleRight() -> void

isExpanded

isExpanded(int node) -> bool

model

model(ITreeModel m) -> TreeView

offActivate

offActivate(int t) -> void

offExpand

offExpand(int t) -> void

offSelect

offSelect(int t) -> void

onActivate

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

onExpand

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

onModelChange

onModelChange(ModelEvent e) -> void

onSelect

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

paintChrome

paintChrome(Canvas c) -> void

paintContent

paintContent(Canvas c) -> void

rebuildFlat

rebuildFlat() -> void

scrollTo

scrollTo(int x, int y) -> void

selectRow

selectRow(int idx) -> void

setExpanded

setExpanded(int node, bool value) -> void

toggleExpandAt

toggleExpandAt(int row) -> void