ContainedBindComponent¶
Qualified name: delphifmx.ContainedBindComponent
- class ContainedBindComponent¶
Bases:
BasicBindComponentBase class for all common binding components descending from it. TContainedBindComponent is an abstract class that is the base class for TCommonBindComponent.
Methods
TComponent.BindMethodsToEvents(prefix) Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName.
TContainedBindComponent.CanSetControlComponent(Value: Component) -> bool Returns whether the control component can be set a given value.
TComponent.GetParentComponent() Returns the parent of a component.
TComponent.HasParent() Indicates whether the component has a parent to handle its filing.
TContainedBindComponent.SetParentComponent(AParent: Component) -> None Sets the parent component of this component.
Attributes
Specifies a list that holds the binding expressions.
Specifies a category for this component.
ClassNameReturns the TObject.ClassName
ComObjectSpecifies the interface reference implemented by the component.
Returns the owned component count
ComponentIndexIndicates the position of the component in its owner's Components property array.
ComponentStateDescribes the current state of the component, indicating when a component needs to avoid certain actions.
ComponentStyleGoverns the behavior of the component.
Returns an iterator over the owned components
Specifies the component that will be bound to the source component, by means of LiveBindings.
DesignInfoContains information used by the Form designer.
Returns a string containing the name of this component.
Returns the index of this component in the bindings list.
NameSpecifies the name of the component as referenced in code.
ObserversIndicates the TObservers object added to the TComponent.
Returns the Component Owner
TagStores a NativeInt integral value as a part of a component.
VCLComObjectRepresents information used internally by components that support COM.
- 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_”.
- BindingsList¶
Specifies a list that holds the binding expressions.
- Type:
- CanSetControlComponent(Value: Component) bool¶
Returns whether the control component can be set a given value. As implemented in TContainedBindComponent, CanSetControlComponent always returns True, but in descendants it actually returns whether the given Value (that is itself a TComponent) can be assigned to the control component.
- Category¶
Specifies a category for this component. For example, for a binding expression called BindExpressionForm121, of type TBindExpression, the following code:
ShowMessage(BindExpressionForm121.Category);
shows the following message: Binding Expressions.
- Type:
str
- ComponentCount¶
Returns the owned component count
- Components¶
Returns an iterator over the owned components
- ControlComponent¶
Specifies the component that will be bound to the source component, by means of LiveBindings.
- Type:
- DisplayName¶
Returns a string containing the name of this component.
- Type:
str
- GetParentComponent()¶
Returns the parent of a component.
- HasParent()¶
Indicates whether the component has a parent to handle its filing.
- Index¶
Returns the index of this component in the bindings list.
- Type:
int
- Owner¶
Returns the Component Owner