载入中...
搜索中...
未找到
eve::ui::PropertyComponent类 参考final

Component wrapper that becomes dirty when its bound model changes. 更多...

#include <PropertyView.h>

类 eve::ui::PropertyComponent 继承关系图:
eve::ui::Component

Public 成员函数

 PropertyComponent (property_access::IPropertyAccess *model=nullptr, PropertyViewOptions options={})
 Property component.
 
 ~PropertyComponent () override=default
 Property component.
 
void bind (property_access::IPropertyAccess *model)
 Replace the model and reconnect change observation.
 
property_access::IPropertyAccess * model () const
 Return the currently bound property model, or null when unbound.
 
void setOptions (PropertyViewOptions options)
 Replace generation policy and mark the component dirty.
 
WidgetDesc build () override
 Build the current schema-driven tree.
 
- Public 成员函数 继承自 eve::ui::Component
virtual ~Component ()=default
 Component.
 
void attach (UIHostHandle host)
 Attaches .
 
void mountAs (const std::string &hostName)
 Mounts as.
 
UIHostHandle host () const noexcept
 Returns the attached host handle, or an empty handle before attach.
 
void rebuild (bool forceFull=false)
 Rebuild tree onto host (reconcile by key when possible).
 
void markDirty ()
 Mark dirty.
 
bool isDirty () const
 True when dirty.
 
bool updateIfDirty ()
 If dirty, rebuild and clear flag. Returns true if rebuilt.
 

额外继承的成员函数

- Protected 成员函数 继承自 eve::ui::Component
void setState ()
 Subclasses call after mutating local state that affects build().
 

详细描述

Component wrapper that becomes dirty when its bound model changes.

在文件 PropertyView.h 第 53 行定义.

构造及析构函数说明

◆ PropertyComponent()

eve::ui::PropertyComponent::PropertyComponent ( property_access::IPropertyAccess *  model = nullptr,
PropertyViewOptions  options = {} 
)
explicit

Property component.

在文件 PropertyView.cpp 第 528 行定义.

◆ ~PropertyComponent()

eve::ui::PropertyComponent::~PropertyComponent ( )
overridedefault

Property component.

成员函数说明

◆ bind()

void eve::ui::PropertyComponent::bind ( property_access::IPropertyAccess *  model)

Replace the model and reconnect change observation.

在文件 PropertyView.cpp 第 533 行定义.

引用了 eve::Subscription::dispose(), eve::ui::Component::markDirty() , 以及 model().

◆ build()

WidgetDesc eve::ui::PropertyComponent::build ( )
overridevirtual

Build the current schema-driven tree.

实现了 eve::ui::Component.

在文件 PropertyView.cpp 第 545 行定义.

引用了 eve::ui::buildPropertyView(), column , 以及 eve::ui::PropertyViewOptions::idPrefix.

◆ model()

property_access::IPropertyAccess * eve::ui::PropertyComponent::model ( ) const
inline

Return the currently bound property model, or null when unbound.

返回
Borrowed nullable model supplied by the caller. @ownership PropertyComponent does not own the model; the caller must keep it alive. @lifetime Valid until bind() replaces it or the model is destroyed; do not retain across frames without external lifetime control. @thread Call on the UI thread. @reentrancy The accessor invokes no callbacks and is invalid across bind/rebuild mutation.

在文件 PropertyView.h 第 71 行定义.

被这些函数引用 bind().

◆ setOptions()

void eve::ui::PropertyComponent::setOptions ( PropertyViewOptions  options)

Replace generation policy and mark the component dirty.

在文件 PropertyView.cpp 第 540 行定义.

引用了 eve::ui::Component::markDirty() , 以及 options.


该类的文档由以下文件生成: