Specialized binding target for value sources where the binding target itself is the value source. More...
#include <kanzi/core.ui/binding/typed_value_source_binding_target_runtime.hpp>
Public Member Functions | |
PropertyTypeDescriptor< T >::TypedValueSource * | getValueSource () |
Returns a pointer to a value source. More... | |
const PropertyTypeDescriptor< T >::TypedValueSource * | getValueSource () const |
Returns a pointer to a value source. More... | |
~TypedValueSourceBindingTargetRuntime () override | |
Destructor. More... | |
Public Member Functions inherited from kanzi::ValueSourceBindingTargetRuntime | |
void | clearValueSourceOwner () |
Clears the value source owner. More... | |
PropertyValuePrecedence | getPrecedence () const |
Gets value source precedence. More... | |
PropertyField | getPropertyField () const |
Gets a property field. More... | |
AbstractPropertyType | getPropertyType () const |
Gets a property type. More... | |
bool | hasValueSourceOwner () const |
Indicates whether this target runtime still has a value source owner. More... | |
Public Member Functions inherited from kanzi::BindingTargetRuntime | |
void | attachForRead () |
Attaches the binding target runtime for reading. More... | |
void | attachForWrite () |
Attaches the binding target runtime for writing. More... | |
BindingProcessorConstIterator | beginProcessors () const |
Gets an iterator to the beginning of binding processors. More... | |
void | copyBindingProcessors (const AbstractBinding &binding) |
Copies backward direction processors from a binding. More... | |
void | detach () |
Detaches binding target runtime. More... | |
BindingProcessorConstIterator | endProcessors () const |
Gets an iterator to the end of binding processors. More... | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. More... | |
BindingLookupContext & | getLookupContext () const |
Accesses target lookup context. More... | |
bool | isConnected () |
Indicates whether this source is connected. More... | |
bool | read (Variant &value) |
Reads a value from the binding target. More... | |
void | setBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
Sets the binding runtime. More... | |
bool | write (const Variant &value) |
Writes a value to the binding target. More... | |
virtual | ~BindingTargetRuntime () |
Destructor. More... | |
Static Public Member Functions | |
static BindingTargetRuntimePtr | create (BindingLookupContextPtr lookupContext, AbstractPropertyType propertyType, PropertyField field, PropertyValuePrecedence precedence, bool reuseAllowed) |
Create a typed value source binding target runtime. More... | |
Static Public Member Functions inherited from kanzi::ValueSourceBindingTargetRuntime | |
static BindingTargetRuntimePtr | create (BindingLookupContextPtr lookupContext, AbstractPropertyType propertyType, PropertyField field, PropertyValuePrecedence precedence, bool reuseAllowed) |
Creates a value source binding target runtime without an actual binding target. More... | |
Protected Types | |
using | ObjectPropertyListenerType = ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & > |
Type name for object property listener. More... | |
Protected Attributes | |
PropertyTypeDescriptor< T >::TypedValueSource | m_valueSource |
Value source. More... | |
Protected Attributes inherited from kanzi::ValueSourceBindingTargetRuntime | |
PropertyField | m_field |
Property field to use. More... | |
bool | m_localReadListenerRequested |
Indicates whether the local read listener is requested. More... | |
PropertyObject & | m_object |
Object the value source is installed to. More... | |
PropertyValuePrecedence | m_precedence |
Precedence to use. More... | |
AbstractPropertyType | m_propertyType |
Property type to use. More... | |
AbstractPropertyTypeDescriptor::ValueSourceOwner * | m_valueSourceOwner |
Owner for the binding value source this runtime installs. More... | |
Protected Attributes inherited from kanzi::BindingTargetRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
Abstract binding runtime for this target. More... | |
BindingLookupContextPtr | m_lookupContext |
Binding lookup context for wherever this binding target runtime is attached to. More... | |
BindingProcessorContainer | m_processors |
Binding processors (for the target, backward direction). More... | |
Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject &> | |
PropertyObject * | m_localPropertyListenerObject |
The object to which the local property listener has been installed. More... | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingTargetRuntime | |
typedef BindingProcessorContainer::const_iterator | BindingProcessorConstIterator |
Binding processor iterator type. More... | |
typedef vector< BindingProcessorSharedPtr > | BindingProcessorContainer |
Binding processor container type. More... | |
Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject &> | |
static void | localPropertyChangeCallback (PropertyObject &, const T &, PropertyNotificationReason reason, void *userData) |
Property change callback for object property. More... | |
Specialized binding target for value sources where the binding target itself is the value source.
|
protected |
Type name for object property listener.
|
inlineoverride |
Destructor.
|
inlineprotected |
Constructor.
lookupContext | Binding lookup context to use. |
propertyType | Property type to use. |
field | Property field to use. |
precedence | Precedence to use. |
reuseAllowed | Is reuse of the installed value source allowed by other functionality, such as setProperty? |
|
inlinestatic |
Create a typed value source binding target runtime.
lookupContext | Binding lookup context to use. |
propertyType | Property type to use. |
field | Property field to use. |
precedence | Precedence to use. |
reuseAllowed | Is reuse of the installed value source allowed by other functionality, such as setProperty? |
|
inline |
Returns a pointer to a value source.
|
inline |
Returns a pointer to a value source.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::attachForReadOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::attachForWriteOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::detachOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::isConnectedOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::readOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::writeOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
|
inlineprotected |
Attaches the value source owner.
Initial value is the topmost value source value prior to attachment.
reuseAllowed | Is reuse of the installed value source allowed by other functionality, such as setProperty? |
|
inlineprotected |
Detaches the value source installed by this value source binding target runtime.
If value source is not installed, this function does not do anything.
|
inlineprotected |
Gets the initial value of a property type.
If node is not available, uses either node fetch or object.
|
protected |
Value source.