CustomPrototypeBindSource#

Qualified name: delphivcl.CustomPrototypeBindSource

class CustomPrototypeBindSource#

Bases: BaseObjectBindSource

Is a base class that implements a bind source for creating sample data. If you want to create your own custom prototype bind source, then you should derive your class from TCustomPrototypeBindSource. When designing applications, TPrototypeBindSource is available from the Tool Palette.

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.

GetParentComponent

Returns the parent of a component.

HasParent

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

Attributes

Active

Specifies whether the bind source adapter is active.

AutoActivate

Specifies whether the bind source is automatically activated.

AutoEdit

Embarcadero Technologies does not currently have any additional information.

AutoPost

Embarcadero Technologies does not currently have any additional information.

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

DataGenerator

Embarcadero Technologies does not currently have any additional information.

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.

FieldDefs

Embarcadero Technologies does not currently have any additional information.

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

RecordCount

Embarcadero Technologies does not currently have any additional information.

Tag

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

VCLComObject

Represents information used internally by components that support COM.

AutoEdit#

Embarcadero Technologies does not currently have any additional information.

AutoPost#

Embarcadero Technologies does not currently have any additional information.

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

DataGenerator#

Embarcadero Technologies does not currently have any additional information.

FieldDefs#

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.

Owner#

Returns the Component Owner

RecordCount#

Embarcadero Technologies does not currently have any additional information.