LEVIATHAN v962456e · 962456eee1

dagon

class ArrayListModel

since 0.1.0-alpha.1linux

bases
ITextListModel

Constructors

new

new()

of

ArrayListModel::of(Array<string> initial)

Fields

batchDepth_

int batchDepth_

dispatching_

bool dispatching_

handlers_

Array<(ModelEvent) => void> handlers_

nextHandlerToken_

int nextHandlerToken_

pendingCount_

int pendingCount_

pendingFirst_

int pendingFirst_

pendingIsMixed_

bool pendingIsMixed_

pendingKind_

ModelChange | None pendingKind_

rows_

Array<string> rows_

tokens_

Array<int> tokens_

Methods

add

add(string s) -> void

addAll

addAll(Array<string> items) -> void

beginBatch

beginBatch() -> void

clear

clear() -> void

count

count() -> int

emit

emit(ModelChange kind, int first, int cnt) -> void

endBatch

endBatch() -> void

fireOne

fireOne(ModelEvent e) -> void

insert

insert(int at, string s) -> void

offChange

offChange(int t) -> void

onChange

onChange((ModelEvent) => void h) -> int

recordForBatch

recordForBatch(ModelChange kind, int first, int count) -> void

removeAt

removeAt(int i) -> void

removeRange

removeRange(int first, int cnt) -> void

set

set(int i, string s) -> void

text

text(int row) -> string