TreeDataGridRowAutomationPeer
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridRowAutomationPeer
An automation peer which represents a TreeDataGridRow.
Members
TYPEto_refconstructnewownertoggle_stateis_read_onlyexpand_collapse_stateshows_menuis_selectedselection_containervaluetoggleexpandcollapseset_valueadd_to_selectionremove_from_selectionselect
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TreeDataGridRowAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &TreeDataGridRow) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &TreeDataGridRow) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<TreeDataGridRow>
The owning row.
toggle_state
fn toggle_state(self: &Self) -> ToggleState
Whether the row is expanded (ToggleState); indeterminate for a row without an expander.
is_read_only
fn is_read_only(self: &Self) -> bool
The model is read only (IsReadOnly).
expand_collapse_state
fn expand_collapse_state(self: &Self) -> ExpandCollapseState
ExpandCollapseState.
shows_menu
fn shows_menu(self: &Self) -> bool
ShowsMenu.
is_selected
fn is_selected(self: &Self) -> bool
Whether the row is selected (IsSelected).
selection_container
fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
The selection provider of the owning grid (SelectionContainer).
value
fn value(self: &Self) -> Option<String>
The text of the model (Value).
toggle
fn toggle(self: &Self) -> Result<(), AutomationError>
Expands or collapses the row (Toggle).
expand
fn expand(self: &Self) -> Result<(), AutomationError>
Expands the row (Expand).
collapse
fn collapse(self: &Self) -> Result<(), AutomationError>
Collapses the row (Collapse).
set_value
fn set_value(self: &Self, _value: Option<&str>) -> Result<(), AutomationError>
Errors
Always AutomationError::NotSupported: rows are read only (NotSupportedException).
add_to_selection
fn add_to_selection(self: &Self) -> Result<(), AutomationError>
Adds the row to the selection (AddToSelection).
remove_from_selection
fn remove_from_selection(self: &Self) -> Result<(), AutomationError>
Removes the row from the selection (RemoveFromSelection).
select
fn select(self: &Self) -> Result<(), AutomationError>
Selects the row alone (Select).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherAutomationPeerImplExtControlAutomationPeerImplExtDerefUpcast<T>Upcast<TreeDataGridRowAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.