ITreeDataGridSource
trait · ferroui-treedatagrid-core · v0.5.0
trait ITreeDataGridSource: INotifyPropertyChanged + Any
A source of a tree data grid, untyped (ITreeDataGridSource).
Members
column_countcolumncolumns_untypedrowsselectionset_selectionis_hierarchicalis_sorteditems_untypedget_model_children_untypedsort_byclear_sortadd_sortedremove_sortedmove_rowsas_any
column_count
fn column_count(self: &Self) -> usize
The number of columns.
column
fn column(self: &Self, index: usize) -> Rc<dyn IColumn>
The column at index, untyped.
columns_untyped
fn columns_untyped(self: &Self) -> Vec<Rc<dyn IColumn>>
The columns, untyped.
rows
fn rows(self: &Self) -> Rc<dyn IRows>
The rows.
selection
fn selection(self: &Self) -> Option<Rc<dyn ITreeDataGridSelection>>
The selection (a row selection is created on first access unless one was set).
set_selection
fn set_selection(self: &Self, value: Option<Rc<dyn ITreeDataGridSelection>>)
Sets the selection, whose source must be the items of the source.
is_hierarchical
fn is_hierarchical(self: &Self) -> bool
is_sorted
fn is_sorted(self: &Self) -> bool
items_untyped
fn items_untyped(self: &Self) -> UntypedModels
The items, untyped.
get_model_children_untyped
fn get_model_children_untyped(self: &Self, model: &BoxedValue) -> Option<Vec<BoxedValue>>
The child models of a model, untyped (GetModelChildren(object)).
sort_by
fn sort_by(self: &Self, column: Option<&dyn IColumn>, direction: ListSortDirection) -> bool
Sorts the rows by column (a column of the source); false when the column is not one.
clear_sort
fn clear_sort(self: &Self)
add_sorted
fn add_sorted(self: &Self, handler: Rc<dyn Fn() -> ()>) -> u64
Subscribes to Sorted.
remove_sorted
fn remove_sorted(self: &Self, token: u64)
move_rows
fn move_rows(self: &Self, source: &dyn ITreeDataGridSource, indexes: &[IndexPath], target_index: &IndexPath, position: RowDropPosition, effects: RowMoveEffects)
Moves the rows at indexes of source to target_index (drag and drop).
as_any
fn as_any(self: &Self) -> &dyn Any
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.