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) -> voidaddAll
addAll(Array<string> items) -> voidbeginBatch
beginBatch() -> voidclear
clear() -> voidcount
count() -> intemit
emit(ModelChange kind, int first, int cnt) -> voidendBatch
endBatch() -> voidfireOne
fireOne(ModelEvent e) -> voidinsert
insert(int at, string s) -> voidoffChange
offChange(int t) -> voidonChange
onChange((ModelEvent) => void h) -> intrecordForBatch
recordForBatch(ModelChange kind, int first, int count) -> voidremoveAt
removeAt(int i) -> voidremoveRange
removeRange(int first, int cnt) -> voidset
set(int i, string s) -> voidtext
text(int row) -> string