[][src]Trait scf_core::property::Property

pub trait Property<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint>: RawProperty {
    fn get_config(&self) -> &dyn PropertyConfig<K, V>;
fn get_value(&self) -> Option<Box<V>>;
fn add_change_listener(&self, listener: PropertyChangeListener<K, V>);
fn clone_boxed(&self) -> Box<dyn Property<K, V>>;
fn to_boxed(self) -> Box<dyn Property<K, V>>; }

Required methods

fn get_config(&self) -> &dyn PropertyConfig<K, V>

fn get_value(&self) -> Option<Box<V>>

property value, if not configured or no valid value, default to defaultValue Of PropertyConfig

fn add_change_listener(&self, listener: PropertyChangeListener<K, V>)

listeners to the value change, notified once value changed

fn clone_boxed(&self) -> Box<dyn Property<K, V>>

fn to_boxed(self) -> Box<dyn Property<K, V>>

Loading content...

Implementors

impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> Property<K, V> for DefaultProperty<K, V>[src]

Loading content...