TreeDataGridCellImpl
trait · ferroui-controls-treedatagrid · v0.5.0
trait TreeDataGridCellImpl: TemplatedControlImpl + $crate::Upcast<TreeDataGridCell>
The overridable members introduced by the class.
Members
begin_rebind
fn begin_rebind(this: &Self)
Begins a synchronous replacement of this cell's row. The presenter still calls
unrealize and realize, including their normal clearing/prepared events. This hook is
not called when a cell is merely returned to the recycle pool.
end_rebind
fn end_rebind(this: &Self, realized: bool)
Ends the synchronous replacement, including when a lifecycle callback panics.
realized is true only when realize completed successfully. On false, release any
presentation state retained by begin_rebind. Do not assume the model or indexes were
reset if a callback failed partway through.
realize
fn realize(this: &Self, factory: &Rc<TreeDataGridElementFactory>, selection: Option<&dyn ITreeDataGridSelectionInteraction>, model: &CellRef, column_index: i32, row_index: i32)
Binds the cell to model, the cell of the column at column_index in the row at
row_index.
unrealize
fn unrealize(this: &Self)
Releases the cell's model.
update_value
fn update_value(this: &Self)
Reads the value of the model again (UpdateValue).
on_model_property_changed
fn on_model_property_changed(this: &Self, property_name: &str)
A property of the model changed (OnModelPropertyChanged); property_name is the name
of the property, empty when all properties changed.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.