Trait flo_ui::ViewModel
[−]
[src]
pub trait ViewModel { fn get_property(&self, property_name: &str) -> BindRef<PropertyValue>; fn set_property(&self, property_name: &str, new_value: PropertyValue); fn get_property_names(&self) -> Vec<String>; }
Represents a viewmodel for a control subtree. ViewModels are used for controls which can be edited and need to have values stored by key in the controller
Required Methods
fn get_property(&self, property_name: &str) -> BindRef<PropertyValue>
Retrieves a property
fn set_property(&self, property_name: &str, new_value: PropertyValue)
Updates a property
fn get_property_names(&self) -> Vec<String>
Retrieves the names of all of the properties in this item
Implementors
impl ViewModel for NullViewModel
impl ViewModel for DynamicViewModel