SwayzeTableDataController<ParentType extends SwayzeController> class
A ControllerBase that manages some data on table.
Information that doesn't generate UI updates on Swayze:
tableData
meta information of table.
Information that generate UI updates if changed: columns and rows that are SwayzeHeaderController.
It is possible to listen for particular changes on columns and rows which are both ValueListenables. To listen for change in both columns and rows, addListener can be called directly.
See also:
- SwayzeCellsController which controls data regarding cells in the table.
- Inheritance
-
- Object
- ControllerBase
- DataController
- SwayzeTableDataController
- Implemented types
-
- SubController<
ParentType> - Listenable
- SubController<
Constructors
-
SwayzeTableDataController({required String id, required ParentType parent, required int columnCount, required int rowCount, required Iterable<
SwayzeHeaderData> columns, required Iterable<SwayzeHeaderData> rows, required int frozenColumns, required int frozenRows})
Properties
- columns → SwayzeHeaderController
-
A SwayzeHeaderController for the horizontal axis.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Table identifier
final
- parent → ParentType
-
The SwayzeController that has created this sub-controller.
final
- rows → SwayzeHeaderController
-
A SwayzeHeaderController for the vertical axis
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableRange → Range2D
-
A
Range2D
that represents the table to include all columns and rowsno setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
override
-
dispose(
) → void -
When set to be removed, controllers may have listeners and other
references that may create memory dead dependency. dispose should drop
such references.
override
-
getHeaderControllerFor(
{required Axis axis}) → SwayzeHeaderController -
Retrieve a SwayzeHeaderController for a particular
axis
. -
handleSelectionChange(
) → void - Handle changes to the listenable to compute a new SwayzeHeaderState.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited