Construct the cell list.
Whether the object can redo changes.
Whether the object can undo changes.
A signal emitted when the cell list has changed.
Test whether the cell list has been disposed.
Test whether the list is empty.
true
if the cell list is empty, false
otherwise.
This is a read-only property.
Constant.
No changes.
Get the length of the cell list.
The number of cells in the cell list.
This is a read-only property.
Constant.
No changes.
Begin a compound operation.
Whether the operation is undoable.
The default is true
.
Remove all cells from the cell list.
Linear.
All current iterators are invalidated.
Clear the change stack.
Dispose of the resources held by the cell list.
End a compound operation.
Get the cell at the specified index.
The positive integer index of interest.
The cell at the specified index.
Constant.
No changes.
An index
which is non-integral or out of range.
Insert a cell into the cell list at a specific index.
The index at which to insert the cell.
The cell to set at the specified index.
The new length of the cell list.
Linear.
No changes.
The index
will be clamped to the bounds of the cell list.
An index
which is non-integral.
This should be considered to transfer ownership of the
cell to the CellList
. As such, cell.dispose()
should
not be called by other actors.
Insert a set of items into the cell list at the specified index.
The index at which to insert the cells.
The cells to insert at the specified index.
The new length of the cell list.
Linear.
No changes.
The index
will be clamped to the bounds of the cell list.
An index
which is non-integral.
This should be considered to transfer ownership of the
cells to the CellList
. As such, cell.dispose()
should
not be called by other actors.
Create an iterator over the cells in the cell list.
A new iterator starting at the front of the cell list.
Constant.
No changes.
Move a cell from one index to another.
The index to move the element to.
Constant.
Iterators pointing at the lesser of the fromIndex
and the toIndex
and beyond are invalidated.
A fromIndex
or a toIndex
which is non-integral.
Add a cell to the back of the cell list.
The cell to add to the back of the cell list.
The new length of the cell list.
Constant.
No changes.
This should be considered to transfer ownership of the
cell to the CellList
. As such, cell.dispose()
should
not be called by other actors.
Push a set of cells to the back of the cell list.
An iterable or array-like set of cells to add.
The new length of the cell list.
Linear.
No changes.
This should be considered to transfer ownership of the
cells to the CellList
. As such, cell.dispose()
should
not be called by other actors.
Redo an operation.
Remove and return the cell at a specific index.
The index of the cell of interest.
The cell at the specified index, or undefined
if the
index is out of range.
Constant.
Iterators pointing at the removed cell and beyond are invalidated.
An index
which is non-integral.
Remove a range of items from the cell list.
The start index of the range to remove (inclusive).
The end index of the range to remove (exclusive).
The new length of the cell list.
Linear.
Iterators pointing to the first removed cell and beyond are invalid.
A startIndex
or endIndex
which is non-integral.
Remove the first occurrence of a cell from the cell list.
The cell of interest.
The index of the removed cell, or -1
if the cell
is not contained in the cell list.
Linear.
Iterators pointing at the removed cell and beyond are invalidated.
Set the cell at the specified index.
The positive integer index of interest.
The cell to set at the specified index.
Constant.
No changes.
An index
which is non-integral or out of range.
This should be considered to transfer ownership of the
cell to the CellList
. As such, cell.dispose()
should
not be called by other actors.
Undo an operation.
Generated using TypeDoc
A cell list object that supports undo/redo.