BaseObjectBindSource#

Qualified name: delphivcl.BaseObjectBindSource

class BaseObjectBindSource#

Bases: BaseLinkingBindSource

Is a bind source that supports adapters to connect to different types of data. The TBaseObjectBindSource class implements a bind source that supports adapters to connect to different types of data. The adapter can be provided by setting a property (InternalAdapter) or by implementing the OnCreateAdapter event.

Methods

ApplyUpdates

Embarcadero Technologies does not currently have any additional information.

BindMethodsToEvents

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

Cancel

Embarcadero Technologies does not currently have any additional information.

CancelUpdates

Embarcadero Technologies does not currently have any additional information.

Create

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

Delete

Embarcadero Technologies does not currently have any additional information.

Destroy

Disposes of the component and its owned components.

Edit

Embarcadero Technologies does not currently have any additional information.

First

Embarcadero Technologies does not currently have any additional information.

GetFormatLink

Embarcadero Technologies does not currently have any additional information.

GetMember

Returns the member for the given member name.

GetParentComponent

Returns the parent of a component.

HasParent

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

Insert

Embarcadero Technologies does not currently have any additional information.

IsRequired

Embarcadero Technologies does not currently have any additional information.

IsValidChar

Embarcadero Technologies does not currently have any additional information.

Last

Embarcadero Technologies does not currently have any additional information.

Locate

Embarcadero Technologies does not currently have any additional information.

Lookup

Embarcadero Technologies does not currently have any additional information.

Next

Embarcadero Technologies does not currently have any additional information.

Post

Embarcadero Technologies does not currently have any additional information.

Prior

Embarcadero Technologies does not currently have any additional information.

Refresh

Embarcadero Technologies does not currently have any additional information.

Attributes

Active

Specifies whether the bind source adapter is active.

AutoActivate

Specifies whether the bind source is automatically activated.

BOF

Indicates whether the bind source adapter is positioned in the first record.

CanModify

Specifies whether the bind source has permission to modify the data.

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

DesignInfo

Contains information used by the Form designer.

Editing

Indicates whether the data is in edit mode.

Eof

Indicates whether the bind source adapter is positioned in the last record.

InternalAdapter

Returns the internal adapter of the bind source.

ItemIndex

Specifies the index of the current record.

Members

<Delphi indexed property Members of type TBaseObjectBindSource at 211416EDB60>

Name

Specifies the name of the component as referenced in code.

Observers

Indicates the TObservers object added to the TComponent.

OnCreateAdapter

<Delphi property OnCreateAdapter of type TBaseObjectBindSource at 211418DF400>

Owner

Returns the Component Owner

Tag

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

VCLComObject

Represents information used internally by components that support COM.

Active#

Specifies whether the bind source adapter is active. Read Active to determine whether the bind source adapter is active. By default, the Active property is set to True. When Active is False, the bind source does not have an adapter or its adapter is not active. When Active is True, the bind source has an active adapter.

ApplyUpdates()#

Embarcadero Technologies does not currently have any additional information.

AutoActivate#

Specifies whether the bind source is automatically activated. Set AutoActive to True for automatic activation.

BOF#

Indicates whether the bind source adapter is positioned in the first record. Read BOF (beginning of file) to determine if ItemIndex is located in the first record. If BOF is True, the bind source has an adapter and the active record is the first one. BOF is also True if there is no active record. BOF is False in all other cases.

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_”.

CanModify#

Specifies whether the bind source has permission to modify the data. Check CanModify to determine if data can be edited. When CanModify is set to True, the bind source can edit the data. When CanModify is set to False, the bind source cannot edit the data.

Cancel()#

Embarcadero Technologies does not currently have any additional information.

CancelUpdates()#

Embarcadero Technologies does not currently have any additional information.

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.ObjectScope.TBaseObjectBindSource.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.

Delete()#

Embarcadero Technologies does not currently have any additional information.

Destroy()#

Disposes of the component and its owned components. Data.Bind.ObjectScope.TBaseObjectBindSource.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.

Edit()#

Embarcadero Technologies does not currently have any additional information.

Editing#

Indicates whether the data is in edit mode. Read Editing to determine whether the bind source adapter can currently edit the data. If the Editing property is True, the data provided by the bind source adapter is in editing mode. Otherwise, it is False.

Eof#

Indicates whether the bind source adapter is positioned in the last record. Read Eof (end of file) to determine if ItemIndex is located in the last record. If Eof is True, the bind source has an adapter and the active record is the last one or there are no records. Eof is False if the ItemIndex is located in any other position.

First()#

Embarcadero Technologies does not currently have any additional information.

Embarcadero Technologies does not currently have any additional information.

GetMember(AMemberName: string) Object#

Returns the member for the given member name. Data.Bind.ObjectScope.TBaseObjectBindSource.GetMember inherits from Data.Bind.Components.TBaseBindScopeComponent.GetMember. All content below this line refers to Data.Bind.Components.TBaseBindScopeComponent.GetMember. Returns the member for the given member name. The GetMember method returns the scope member, as a TObject, for the member name given through the AMemberName parameter. This member is later used in the generated bindings expressions.

Tip: This member object or its properties may be referenced by bindings expressions.

GetParentComponent()#

Returns the parent of a component.

HasParent()#

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

Insert()#

Embarcadero Technologies does not currently have any additional information.

InternalAdapter#

Returns the internal adapter of the bind source. The InternalAdapter property holds the internal adapter of the bind source. InternalAdapter uses the GetInternalAdapter method to return the internal adapter of the bind source.

Note: The GetInternalAdapter method always returns nil. Descendant classes must override this method to return the internal adapter.

IsRequired(AFieldName: string) Boolean#

Embarcadero Technologies does not currently have any additional information.

IsValidChar(AFieldName: string, AChar: Char) Boolean#

Embarcadero Technologies does not currently have any additional information.

ItemIndex#

Specifies the index of the current record. ItemIndex holds the index of the current record of the dataset the bind source adapter is currently on. The first item has the index 0, the second item has the index 1, and so on. If no item is selected, the value of ItemIndex is -1.

Last()#

Embarcadero Technologies does not currently have any additional information.

Locate(KeyFields: string, KeyValues: Value) Boolean#

Embarcadero Technologies does not currently have any additional information.

Lookup(KeyFields: string, KeyValues: Value, ResultFields: string) Value#

Embarcadero Technologies does not currently have any additional information.

Members#

<Delphi indexed property Members of type TBaseObjectBindSource at 211416EDB60>

Next()#

Embarcadero Technologies does not currently have any additional information.

OnCreateAdapter#

<Delphi property OnCreateAdapter of type TBaseObjectBindSource at 211418DF400>

Owner#

Returns the Component Owner

Post()#

Embarcadero Technologies does not currently have any additional information.

Prior()#

Embarcadero Technologies does not currently have any additional information.

Refresh()#

Embarcadero Technologies does not currently have any additional information.