dagon
class ArrayTreeModel
since 0.1.0-alpha.1linux
- bases
ITreeModel
Constructors
new
new()Fields
batchDepth_
int batchDepth_dispatching_
bool dispatching_firstChild_
Array<int> firstChild_handlers_
Array<(ModelEvent) => void> handlers_lastChild_
Array<int> lastChild_live_
Array<bool> live_nextHandlerToken_
int nextHandlerToken_nextId_
int nextId_nextSibling_
Array<int> nextSibling_parent_
Array<int> parent_pendingCount_
int pendingCount_pendingFirst_
int pendingFirst_pendingIsMixed_
bool pendingIsMixed_pendingKind_
ModelChange | None pendingKind_prevSibling_
Array<int> prevSibling_text_
Array<string> text_tokens_
Array<int> tokens_Methods
addChild
addChild(int parentId, string s) -> intbeginBatch
beginBatch() -> voidcheckLive
checkLive(int node) -> voidchild
child(int node, int i) -> intchildCount
childCount(int node) -> intemit
emit(ModelChange kind, int first, int cnt) -> voidendBatch
endBatch() -> voidfireOne
fireOne(ModelEvent e) -> voidmoveNode
moveNode(int id, int newParentId) -> voidoffChange
offChange(int t) -> voidonChange
onChange((ModelEvent) => void h) -> intrecordForBatch
recordForBatch(ModelChange kind, int first, int count) -> voidremoveNode
removeNode(int id) -> voidretireSubtree
retireSubtree(int id) -> voidsetText
setText(int id, string s) -> voidtext
text(int node) -> string