PrototypeBindSource#

Qualified name: delphivcl.PrototypeBindSource

class PrototypeBindSource#

Bases: CustomPrototypeBindSource

Is 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 that make use of the LiveBindings framework, you can use a TPrototypeBindSource component readily available in the Tool Palette to generate sample data for your bindings. These tutorials in the Tutorials section describe the use of TPrototypeBindSource:

Tutorial: Using TPrototypeBindSource and the LiveBindings Designer Mobile Tutorial: Using LiveBindings to Populate a ListView (iOS and Android) Tutorial: Using LiveBindings and DataModules with the Metropolis UI Mobile Tutorial: Using LiveBindings to Populate a ListBox in Mobile Applications (iOS and Android)

Methods

BindMethodsToEvents

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

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 TPrototypeBindSource at 211414C4250>

Owner

Returns the Component Owner

RecordCount

Embarcadero Technologies does not currently have any additional information.

ScopeMappings

Specifies an owned collection of scope mappings.

Tag

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

VCLComObject

Represents information used internally by components that support COM.

AutoActivate#

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

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

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.

OnCreateAdapter#

<Delphi property OnCreateAdapter of type TPrototypeBindSource at 211414C4250>

Owner#

Returns the Component Owner

RecordCount#

Embarcadero Technologies does not currently have any additional information.

ScopeMappings#

Specifies an owned collection of scope mappings. The ScopeMappings property specifies an owned collection whose elements are scope mappings. ScopeMappings are used to add name/value pairs that can be referenced by expressions that reference this source component.