CustomBindingsList#

Qualified name: delphivcl.CustomBindingsList

class CustomBindingsList#

Bases: Component

Represents the base class for the binding list. The TCustomBindingsList class implements a list of binding expressions, output converters, method scopes, and other binding list-related functionality.

Methods

BindMethodsToEvents

Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName.

Create

Allocates memory and constructs a safely initialized instance of a component.

Destroy

Disposes of the component and its owned components.

GetChildren

Enumerates all child components.

GetEnumerator

Returns a TComponent enumerator.

GetMethodsScope

Embarcadero Technologies does not currently have any additional information.

GetOutputConverter

Embarcadero Technologies does not currently have any additional information.

GetParentComponent

Returns the parent of a component.

HasParent

Indicates whether the component has a parent to handle its filing.

Notify

Embarcadero Technologies does not currently have any additional information.

Attributes

BindCompCount

Embarcadero Technologies does not currently have any additional information.

BindComps

<Delphi indexed property BindComps of type TCustomBindingsList at 211416EDE60>

ClassName

Returns the TObject.ClassName

ComObject

Specifies the interface reference implemented by the component.

ComponentCount

Returns the owned component count

ComponentIndex

Indicates the position of the component in its owner's Components property array.

ComponentState

Describes the current state of the component, indicating when a component needs to avoid certain actions.

ComponentStyle

Governs the behavior of the component.

Components

Returns an iterator over the owned components

DependencyList

Embarcadero Technologies does not currently have any additional information.

DesignInfo

Contains information used by the Form designer.

Methods

Specifies a list of available methods.

Name

Specifies the name of the component as referenced in code.

Observers

Indicates the TObservers object added to the TComponent.

OutputConverters

Specifies a list of available output converters.

Owner

Returns the Component Owner

PromptDeleteUnused

Embarcadero Technologies does not currently have any additional information.

Tag

Stores a NativeInt integral value as a part of a component.

UseAppManager

Specifies whether the bindings list uses the global application manager for managed bindings.

VCLComObject

Represents information used internally by components that support COM.

BindCompCount#

Embarcadero Technologies does not currently have any additional information.

BindComps#

<Delphi indexed property BindComps of type TCustomBindingsList at 211416EDE60>

BindMethodsToEvents(prefix)#

Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName. Example: def handle_button1_OnClick(Sender): pass The function returns a list of tuples. Each tuple contains the name of the component, the name of the event and the method object assigned to the event. Note that the prefix parameter is optional and will default to “handle_”.

ComponentCount#

Returns the owned component count

Components#

Returns an iterator over the owned components

Create(AOwner: Component)#

Allocates memory and constructs a safely initialized instance of a component. Data.Bind.Components.TCustomBindingsList.Create inherits from System.Classes.TComponent.Create. All content below this line refers to System.Classes.TComponent.Create. Allocates memory and constructs a safely initialized instance of a component. All objects have a Create method that constructs the object. TComponent redefines Create so that, for components, Create also:

Establishes the relationship of a component and its Owner, as indicated by the AOwner parameter. Sets the ComponentStyle property to csInheritable, meaning that the component can be inherited by a descendent form type. It is not necessary to explicitly create components added in the Form Designer. These components are created automatically when the application is run, and they are destroyed when the application is closed. For components created programmatically, that is, not created in the Form Designer, call Create and pass in an owner component as the AOwner parameter. The owner disposes of the component when it is destroyed. If the component is not owned, then use Free when it needs to be destroyed.

Tip: When passing in Self as the Owner parameter, consider what Self references. If a component creates another component in one of its methods, then Self refers to the first component and not the component being created, which is then owned by the first component. Note: The TComponent constructor is virtual in part to allow polymorphic instantiation of class references. This is critical to the streaming system and to the Form Designer. Do not forget to use the override directive when declaring a new component’s Create constructor.

DependencyList#

Embarcadero Technologies does not currently have any additional information.

Destroy()#

Disposes of the component and its owned components. Data.Bind.Components.TCustomBindingsList.Destroy inherits from System.Classes.TComponent.Destroy. All content below this line refers to System.Classes.TComponent.Destroy. Disposes of the component and its owned components. Do not call Destroy directly. Call Free instead. Free verifies that the component is not nil, and only then calls Destroy. Never explicitly free a component in one of its own event handlers, nor free a component from the event handler of a component that it owns or contains. To destroy a form, call its Release method. Release waits for all the form’s event handlers and the event handlers of the form’s components to finish executing before destroying the form.

Note: A form owns all the controls and nonvisual components that are placed on it in design mode. When it is freed, all of these components are automatically freed as well. By default, all forms are owned by the global Application object. When an application terminates, it frees the global Application object, which frees all forms. For objects that are not components, and for components created with a nil owner, be sure to call Free after finishing with the object; otherwise the memory allocated for the object will be lost until the application terminates.

GetChildren(Proc: GetChildProc, Root: Component)#

Enumerates all child components. Data.Bind.Components.TCustomBindingsList.GetChildren inherits from System.Classes.TComponent.GetChildren. All content below this line refers to System.Classes.TComponent.GetChildren. Enumerates all child components. GetChildren is used internally in the component streaming system. It is not necessary to call it directly. GetChildren expects a TGetChildProc routine that receives all enumerated components. Root represents the owner of the components that will be enumerated. This method does nothing in TComponent and is expected to be overridden in descendants.

GetEnumerator()#

Returns a TComponent enumerator. Data.Bind.Components.TCustomBindingsList.GetEnumerator inherits from System.Classes.TComponent.GetEnumerator. All content below this line refers to System.Classes.TComponent.GetEnumerator. Returns a TComponent enumerator. GetEnumerator returns a TComponentEnumerator reference, which enumerates the components contained within a specified containing component. To process all these subcomponents, call the TComponentEnumerator GetCurrent method within a While MoveNext do loop.

GetMethodsScope()#

Embarcadero Technologies does not currently have any additional information.

GetOutputConverter()#

Embarcadero Technologies does not currently have any additional information.

GetParentComponent()#

Returns the parent of a component.

HasParent()#

Indicates whether the component has a parent to handle its filing.

Methods#

Specifies a list of available methods. For more information about these methods, read the LiveBindings Methods topic.

Notify(AObject: Object, AProperty: string)#

Embarcadero Technologies does not currently have any additional information.

OutputConverters#

Specifies a list of available output converters. For more information about output converters, read the LiveBindings Output Converters help topic.

Owner#

Returns the Component Owner

PromptDeleteUnused#

Embarcadero Technologies does not currently have any additional information.

UseAppManager#

Specifies whether the bindings list uses the global application manager for managed bindings.